Skip to content

Commit

Permalink
fix: use no-op-mempool to avoid evm tx failure with no signer
Browse files Browse the repository at this point in the history
  • Loading branch information
taramakage committed Sep 20, 2023
1 parent faba90d commit 4bddc5c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/cosmos/cosmos-sdk/store/streaming"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/mempool"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/version"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
Expand Down Expand Up @@ -227,6 +228,15 @@ func NewIrisApp(
legacyAmino := encodingConfig.Amino
interfaceRegistry := encodingConfig.InterfaceRegistry

// Setup Mempool
baseAppOptions = append(baseAppOptions, func(app *baseapp.BaseApp) {
memPool := mempool.NoOpMempool{}
app.SetMempool(memPool)
handler := baseapp.NewDefaultProposalHandler(memPool, app)
app.SetPrepareProposal(handler.PrepareProposalHandler())
app.SetProcessProposal(handler.ProcessProposalHandler())
})

bApp := baseapp.NewBaseApp(
iristypes.AppName,
logger,
Expand Down

0 comments on commit 4bddc5c

Please sign in to comment.