Skip to content

Commit

Permalink
add amino support for StakeAuthorization (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
yys committed Jul 13, 2021
1 parent 1297532 commit 471cd87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom/authz/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
}

0 comments on commit 471cd87

Please sign in to comment.