diff --git a/custom/authz/types/codec.go b/custom/authz/types/codec.go index 328345b11..d1f4e9fbb 100644 --- a/custom/authz/types/codec.go +++ b/custom/authz/types/codec.go @@ -4,6 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/x/authz" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) // RegisterLegacyAminoCodec registers the necessary x/authz interfaces and concrete types @@ -14,6 +15,7 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&authz.MsgGrant{}, "msgauth/MsgGrantAuthorization", nil) cdc.RegisterConcrete(&authz.MsgRevoke{}, "msgauth/MsgRevokeAuthorization", nil) cdc.RegisterConcrete(&authz.MsgExec{}, "msgauth/MsgExecAuthorized", nil) - cdc.RegisterConcrete(&banktypes.SendAuthorization{}, "msgauth/SendAuthorization", nil) cdc.RegisterConcrete(&authz.GenericAuthorization{}, "msgauth/GenericAuthorization", nil) + cdc.RegisterConcrete(&banktypes.SendAuthorization{}, "msgauth/SendAuthorization", nil) + cdc.RegisterConcrete(&stakingtypes.StakeAuthorization{}, "msgauth/StakeAuthorization", nil) }