Skip to content

Commit

Permalink
Add MsgUpdateWasmCodeId to codec
Browse files Browse the repository at this point in the history
In order to update Wasm code in the IBC module, a new message, MsgUpdateWasmCodeId, is now registered in the codec. This ensures the message will be correctly serialized/deserialized during transmission.
  • Loading branch information
vmarkushin committed Sep 25, 2023
1 parent e25dbd0 commit 65423bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/light-clients/08-wasm/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
// provided LegacyAmino codec. These types are used for Amino JSON serialization
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgPushNewWasmCode{}, "ibc/MsgPushNewWasmCode")
legacy.RegisterAminoMsg(cdc, &MsgUpdateWasmCodeId{}, "ibc/MsgUpdateWasmCodeId")
}

// RegisterInterfaces registers the tendermint concrete client-related
Expand All @@ -43,6 +44,10 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
(*sdk.Msg)(nil),
&MsgPushNewWasmCode{},
)
registry.RegisterImplementations(
(*sdk.Msg)(nil),
&MsgUpdateWasmCodeId{},
)

msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
Expand Down

0 comments on commit 65423bb

Please sign in to comment.