x/ibc: register missing msgs to codec (#6026)
* Add msg ack and timeout to channel codec * ibc/09-localhost: register codec MsgCreateClient Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
This commit is contained in:
parent
397ffbe119
commit
758cdd2206
|
@ -32,6 +32,8 @@ func RegisterCodec(cdc *codec.Codec) {
|
|||
cdc.RegisterConcrete(MsgChannelCloseConfirm{}, "ibc/channel/MsgChannelCloseConfirm", nil)
|
||||
|
||||
cdc.RegisterConcrete(MsgPacket{}, "ibc/channel/MsgPacket", nil)
|
||||
cdc.RegisterConcrete(MsgAcknowledgement{}, "ibc/channel/MsgAcknowledgement", nil)
|
||||
cdc.RegisterConcrete(MsgTimeout{}, "ibc/channel/MsgTimeout", nil)
|
||||
|
||||
SetSubModuleCodec(cdc)
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@ func RegisterCodec(cdc *codec.Codec) {
|
|||
cdc.RegisterConcrete(ConsensusState{}, "ibc/client/tendermint/ConsensusState", nil)
|
||||
cdc.RegisterConcrete(Header{}, "ibc/client/tendermint/Header", nil)
|
||||
cdc.RegisterConcrete(Evidence{}, "ibc/client/tendermint/Evidence", nil)
|
||||
cdc.RegisterConcrete(MsgCreateClient{}, "ibc/client/MsgCreateClient", nil)
|
||||
cdc.RegisterConcrete(MsgUpdateClient{}, "ibc/client/MsgUpdateClient", nil)
|
||||
cdc.RegisterConcrete(MsgSubmitClientMisbehaviour{}, "ibc/client/MsgSubmitClientMisbehaviour", nil)
|
||||
cdc.RegisterConcrete(MsgCreateClient{}, "ibc/client/tendermint/MsgCreateClient", nil)
|
||||
cdc.RegisterConcrete(MsgUpdateClient{}, "ibc/client/tendermint/MsgUpdateClient", nil)
|
||||
cdc.RegisterConcrete(MsgSubmitClientMisbehaviour{}, "ibc/client/tendermint/MsgSubmitClientMisbehaviour", nil)
|
||||
|
||||
SetSubModuleCodec(cdc)
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ var SubModuleCdc *codec.Codec
|
|||
// RegisterCodec registers the localhost types
|
||||
func RegisterCodec(cdc *codec.Codec) {
|
||||
cdc.RegisterConcrete(ClientState{}, "ibc/client/localhost/ClientState", nil)
|
||||
cdc.RegisterConcrete(MsgCreateClient{}, "ibc/client/localhost/MsgCreateClient", nil)
|
||||
SetSubModuleCodec(cdc)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue