diff --git a/modules/core/04-channel/types/codec.go b/modules/core/04-channel/types/codec.go index 153f36cbf49..d55fffece0c 100644 --- a/modules/core/04-channel/types/codec.go +++ b/modules/core/04-channel/types/codec.go @@ -46,6 +46,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { &MsgChannelUpgradeOpen{}, &MsgChannelUpgradeTimeout{}, &MsgChannelUpgradeCancel{}, + &MsgPruneAcknowledgements{}, &MsgUpdateParams{}, ) diff --git a/modules/core/04-channel/types/codec_test.go b/modules/core/04-channel/types/codec_test.go index 9122a95df0a..fab8d9e5bd0 100644 --- a/modules/core/04-channel/types/codec_test.go +++ b/modules/core/04-channel/types/codec_test.go @@ -83,6 +83,51 @@ func TestCodecTypeRegistration(t *testing.T) { sdk.MsgTypeURL(&types.MsgTimeoutOnClose{}), true, }, + { + "success: MsgChannelUpgradeInit", + sdk.MsgTypeURL(&types.MsgChannelUpgradeInit{}), + true, + }, + { + "success: MsgChannelUpgradeTry", + sdk.MsgTypeURL(&types.MsgChannelUpgradeTry{}), + true, + }, + { + "success: MsgChannelUpgradeAck", + sdk.MsgTypeURL(&types.MsgChannelUpgradeAck{}), + true, + }, + { + "success: MsgChannelUpgradeConfirm", + sdk.MsgTypeURL(&types.MsgChannelUpgradeConfirm{}), + true, + }, + { + "success: MsgChannelUpgradeOpen", + sdk.MsgTypeURL(&types.MsgChannelUpgradeOpen{}), + true, + }, + { + "success: MsgChannelUpgradeTimeout", + sdk.MsgTypeURL(&types.MsgChannelUpgradeTimeout{}), + true, + }, + { + "success: MsgChannelUpgradeCancel", + sdk.MsgTypeURL(&types.MsgChannelUpgradeCancel{}), + true, + }, + { + "success: MsgPruneAcknowledgements", + sdk.MsgTypeURL(&types.MsgPruneAcknowledgements{}), + true, + }, + { + "success: MsgUpdateParams", + sdk.MsgTypeURL(&types.MsgUpdateParams{}), + true, + }, { "type not registered on codec", "ibc.invalid.MsgTypeURL",