Skip to content

Commit

Permalink
fix: error handling in start relay command (#188)
Browse files Browse the repository at this point in the history
* fix: error handling for relay start command

* chore: bump cli version
  • Loading branch information
shreyasbhat0 authored Oct 3, 2023
1 parent c588c13 commit e32e76f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion cli/commands/bridge/relays/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ func startIbcRelay(diveContext *common.DiveContext, enclaveContext *enclaves.Enc
}

if chainA == "icon" {
startIbcRelayIconToCosmos(diveContext, enclaveContext, common.RelayServiceNameIconToCosmos)
_, err := startIbcRelayIconToCosmos(diveContext, enclaveContext, common.RelayServiceNameIconToCosmos)
if err != nil {
diveContext.FatalError("Starlark Run Failed", err.Error())
}
}

return starlarkExecutionResponse
Expand All @@ -94,6 +97,10 @@ func startIbcRelayIconToCosmos(diveContext *common.DiveContext, enclaveContext *

executionData, _, err := enclaveContext.RunStarlarkRemotePackage(diveContext.Ctx, common.DiveRemotePackagePath, "services/bridges/ibc/src/bridge.star", "start_relay", params, false, 4, []kurtosis_core_rpc_api_bindings.KurtosisFeatureFlag{})

if err != nil {
return "", err
}

executionSerializedData, services, _, err := diveContext.GetSerializedData(executionData)

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cli/common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package common
var DiveLogs bool

// !!!!!!!!!!! DO NOT UPDATE! WILL BE UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
var DiveVersion = "v0.0.10-beta"
var DiveVersion = "v0.0.11-beta"

const (
DiveEnclave = "dive"
Expand Down

0 comments on commit e32e76f

Please sign in to comment.