Skip to content

Commit

Permalink
fix: add MsgPruneAcknowledgements to codec registration (#5481)
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Dec 21, 2023
1 parent 28f757a commit 947b15e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/core/04-channel/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
&MsgChannelUpgradeOpen{},
&MsgChannelUpgradeTimeout{},
&MsgChannelUpgradeCancel{},
&MsgPruneAcknowledgements{},
&MsgUpdateParams{},
)

Expand Down
45 changes: 45 additions & 0 deletions modules/core/04-channel/types/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 947b15e

Please sign in to comment.