Skip to content

Commit

Permalink
fix: add ibc ante handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Ixo committed Mar 14, 2023
1 parent a935013 commit 037f561
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
ibcante "github.com/cosmos/ibc-go/v4/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
entityante "github.com/ixofoundation/ixo-blockchain/x/entity/ante"
entitykeeper "github.com/ixofoundation/ixo-blockchain/x/entity/keeper"
iidante "github.com/ixofoundation/ixo-blockchain/x/iid/ante"
Expand All @@ -23,7 +25,8 @@ type HandlerOptions struct {
FeegrantKeeper authante.FeegrantKeeper
IidKeeper iidkeeper.Keeper
EntityKeeper entitykeeper.Keeper
wasmConfig wasmtypes.WasmConfig
wasmConfig *wasmtypes.WasmConfig
IBCKeeper *ibckeeper.Keeper
txCounterStoreKey sdk.StoreKey
SignModeHandler authsigning.SignModeHandler
SigGasConsumer func(meter sdk.GasMeter, sig txsigning.SignatureV2, params authtypes.Params) error
Expand Down Expand Up @@ -69,6 +72,7 @@ func IxoAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
authante.NewSigGasConsumeDecorator(options.AccountKeeper, sigGasConsumer),
authante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
authante.NewIncrementSequenceDecorator(options.AccountKeeper),
ibcante.NewAnteDecorator(options.IBCKeeper),
// custom ixo handlers
iidante.NewIidResolutionDecorator(options.IidKeeper),
entityante.NewBlockNftContractTransferForEntityDecorator(options.EntityKeeper),
Expand Down
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,8 @@ func NewIxoApp(
FeegrantKeeper: app.FeeGrantKeeper,
IidKeeper: app.IidKeeper,
EntityKeeper: app.EntityKeeper,
wasmConfig: wasmConfig,
wasmConfig: &wasmConfig,
IBCKeeper: app.IBCKeeper,
txCounterStoreKey: keys[wasm.StoreKey],

SignModeHandler: encodingConfig.TxConfig.SignModeHandler(),
Expand Down

0 comments on commit 037f561

Please sign in to comment.