Skip to content

Commit

Permalink
add compiler assertions for MsgPruneAcknowledgements
Browse files Browse the repository at this point in the history
  • Loading branch information
charleenfei committed Dec 21, 2023
1 parent b75e3bf commit 5392565
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 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,11 @@ func TestCodecTypeRegistration(t *testing.T) {
sdk.MsgTypeURL(&types.MsgTimeoutOnClose{}),
true,
},
{
"success: MsgPruneAcknowledgements",
sdk.MsgTypeURL(&types.MsgPruneAcknowledgements{}),
true,
},
{
"type not registered on codec",
"ibc.invalid.MsgTypeURL",
Expand Down
2 changes: 2 additions & 0 deletions modules/core/04-channel/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var (
_ sdk.Msg = (*MsgAcknowledgement)(nil)
_ sdk.Msg = (*MsgTimeout)(nil)
_ sdk.Msg = (*MsgTimeoutOnClose)(nil)
_ sdk.Msg = (*MsgPruneAcknowledgements)(nil)

_ sdk.HasValidateBasic = (*MsgChannelOpenInit)(nil)
_ sdk.HasValidateBasic = (*MsgChannelOpenTry)(nil)
Expand All @@ -40,6 +41,7 @@ var (
_ sdk.HasValidateBasic = (*MsgChannelUpgradeTry)(nil)
_ sdk.HasValidateBasic = (*MsgChannelUpgradeAck)(nil)
_ sdk.HasValidateBasic = (*MsgChannelUpgradeConfirm)(nil)
_ sdk.HasValidateBasic = (*MsgPruneAcknowledgements)(nil)
)

// NewMsgChannelOpenInit creates a new MsgChannelOpenInit. It sets the counterparty channel
Expand Down

0 comments on commit 5392565

Please # to comment.