Skip to content

Commit

Permalink
Merge pull request cosmos#258 from ComposableFi/vmarkushin/register-u…
Browse files Browse the repository at this point in the history
…pdate-code-id-type

Add MsgUpdateWasmCodeId to codec
  • Loading branch information
vuong177 authored Sep 26, 2023
2 parents e25dbd0 + 65423bb commit 9267213
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 9267213

Please sign in to comment.