From 6dd5cd4d6c9fe1cfd22e04771adf6c8c3be80aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?colin=20axn=C3=A9r?= <25233464+colin-axner@users.noreply.github.com> Date: Wed, 21 Oct 2020 17:37:08 +0200 Subject: [PATCH] add chainID with context (#308) --- relayer/chain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/relayer/chain.go b/relayer/chain.go index 472bafc0f61..f21e338394e 100644 --- a/relayer/chain.go +++ b/relayer/chain.go @@ -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).