From 0c2ed2b2828cf5f38550c526b7158a73f02b7379 Mon Sep 17 00:00:00 2001 From: Damian Nolan Date: Thu, 21 Dec 2023 17:40:05 +0100 Subject: [PATCH] fix: add MsgPruneAcknowledgements to codec registration --- modules/core/04-channel/types/codec.go | 1 + modules/core/04-channel/types/codec_test.go | 45 +++++++++++++++++++++ 2 files changed, 46 insertions(+) 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",