diff --git a/x/authz/codec.go b/x/authz/codec.go index d2e43b88316c..ecabef38cd0d 100644 --- a/x/authz/codec.go +++ b/x/authz/codec.go @@ -14,6 +14,7 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { legacy.RegisterAminoMsg(cdc, &MsgGrant{}, "cosmos-sdk/MsgGrant") legacy.RegisterAminoMsg(cdc, &MsgRevoke{}, "cosmos-sdk/MsgRevoke") legacy.RegisterAminoMsg(cdc, &MsgExec{}, "cosmos-sdk/MsgExec") + legacy.RegisterAminoMsg(cdc, &MsgExecCompat{}, "cosmos-sdk/MsgExecCompat") cdc.RegisterInterface((*Authorization)(nil), nil) cdc.RegisterConcrete(&GenericAuthorization{}, "cosmos-sdk/GenericAuthorization", nil) @@ -25,6 +26,7 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { &MsgGrant{}, &MsgRevoke{}, &MsgExec{}, + &MsgExecCompat{}, ) registry.RegisterInterface( diff --git a/x/authz/msgs.go b/x/authz/msgs.go index 1721c6c5347c..2d34ac444bc8 100644 --- a/x/authz/msgs.go +++ b/x/authz/msgs.go @@ -14,6 +14,7 @@ var ( _ sdk.Msg = &MsgGrant{} _ sdk.Msg = &MsgRevoke{} _ sdk.Msg = &MsgExec{} + _ sdk.Msg = &MsgExecCompat{} _ cdctypes.UnpackInterfacesMessage = &MsgGrant{} _ cdctypes.UnpackInterfacesMessage = &MsgExec{}