diff --git a/ibc/relayer.go b/ibc/relayer.go index 0739f16df..6589796ef 100644 --- a/ibc/relayer.go +++ b/ibc/relayer.go @@ -216,6 +216,8 @@ type CreateChannelOptions struct { Order Order Version string + + Override bool // only implemented on Go Relayer } // DefaultChannelOpts returns the default settings for creating an ics20 fungible token transfer channel. diff --git a/relayer/rly/cosmos_relayer.go b/relayer/rly/cosmos_relayer.go index d6debbcf8..35a531beb 100644 --- a/relayer/rly/cosmos_relayer.go +++ b/relayer/rly/cosmos_relayer.go @@ -130,7 +130,7 @@ func (commander) AddKey(chainID, keyName, coinType, signingAlgorithm, homeDir st } func (commander) CreateChannel(pathName string, opts ibc.CreateChannelOptions, homeDir string) []string { - return []string{ + cmd := []string{ "rly", "tx", "channel", pathName, "--src-port", opts.SourcePortName, "--dst-port", opts.DestPortName, @@ -139,6 +139,10 @@ func (commander) CreateChannel(pathName string, opts ibc.CreateChannelOptions, h "--home", homeDir, } + if opts.Override { + cmd = append(cmd, "--override") + } + return cmd } func createClientOptsHelper(opts ibc.CreateClientOptions) []string {