Skip to content

Commit

Permalink
Merge pull request #195 from artela-network/fix/state-lifecycle
Browse files Browse the repository at this point in the history
fix: call of FilterTx
  • Loading branch information
0xYuan90 authored Dec 20, 2023
2 parents fa71464 + b4bfe54 commit 9cb9946
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte) (gInfo sdk.GasInfo, re

defer func() {
if r := recover(); r != nil {
app.logger.Debug("runTx panic recovered", "mode", mode, "error", r)
recoveryMW := newOutOfGasRecoveryMiddleware(gasWanted, ctx, app.runTxRecoveryMiddleware)
err, result = processRecovery(r, recoveryMW), nil
}
Expand Down Expand Up @@ -702,7 +703,7 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte) (gInfo sdk.GasInfo, re
app.logger.Error("Aspect.FilterTx CreateTxPointRequest Error %s", err.Error())
continue
}
receive := app.aspect.FilterTx(request)
receive := app.aspect.FilterTx(nil, request)
hasErr, receiveErr := receive.HasErr()
if hasErr {
app.logger.Error("Aspect.FilterTx Return Error %s", receiveErr.Error())
Expand Down

0 comments on commit 9cb9946

Please sign in to comment.