Skip to content

Commit

Permalink
chore: register feegrant and authz interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchon committed Nov 4, 2021
1 parent f637dc0 commit d7bbf2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chain/client/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ import (
signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
authztypes "github.com/cosmos/cosmos-sdk/x/authz"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
paramproposaltypes "github.com/cosmos/cosmos-sdk/x/params/types/proposal"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
feegranttypes "github.com/cosmos/cosmos-sdk/x/feegrant"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
ibcapplicationtypes "github.com/cosmos/ibc-go/v2/modules/apps/transfer/types"
Expand All @@ -55,6 +57,7 @@ func NewTxConfig(signModes []signingtypes.SignMode) client.TxConfig {

// more cosmos types
authtypes.RegisterInterfaces(interfaceRegistry)
authztypes.RegisterInterfaces(interfaceRegistry)
vestingtypes.RegisterInterfaces(interfaceRegistry)
banktypes.RegisterInterfaces(interfaceRegistry)
crisistypes.RegisterInterfaces(interfaceRegistry)
Expand All @@ -67,6 +70,7 @@ func NewTxConfig(signModes []signingtypes.SignMode) client.TxConfig {
slashingtypes.RegisterInterfaces(interfaceRegistry)
stakingtypes.RegisterInterfaces(interfaceRegistry)
upgradetypes.RegisterInterfaces(interfaceRegistry)
feegranttypes.RegisterInterfaces(interfaceRegistry)

marshaler := codec.NewProtoCodec(interfaceRegistry)
return tx.NewTxConfig(marshaler, signModes)
Expand Down Expand Up @@ -94,6 +98,7 @@ func NewClientContext(

// more cosmos types
authtypes.RegisterInterfaces(interfaceRegistry)
authztypes.RegisterInterfaces(interfaceRegistry)
vestingtypes.RegisterInterfaces(interfaceRegistry)
banktypes.RegisterInterfaces(interfaceRegistry)
crisistypes.RegisterInterfaces(interfaceRegistry)
Expand Down

0 comments on commit d7bbf2a

Please sign in to comment.