Skip to content

Commit

Permalink
add chainID with context (cosmos#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed Oct 21, 2020
1 parent be7f278 commit 6dd5cd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions relayer/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ func (c *Chain) SendMsgs(msgs []sdk.Msg) (res *sdk.TxResponse, err error) {
func (c *Chain) CLIContext(height int64) sdkCtx.Context {
encodingConfig := simapp.MakeEncodingConfig()
return sdkCtx.Context{}.
WithChainID(c.ChainID).
WithJSONMarshaler(encodingConfig.Marshaler).
WithInterfaceRegistry(encodingConfig.InterfaceRegistry).
WithTxConfig(encodingConfig.TxConfig).
Expand Down

0 comments on commit 6dd5cd4

Please sign in to comment.