Skip to content

Commit

Permalink
Merge PR: fix estimate_gas error (#1951)
Browse files Browse the repository at this point in the history
* gasmeter in EthSetupContextDecorator.AnteHandle

* Revert "gasmeter in EthSetupContextDecorator.AnteHandle"

This reverts commit 386771f.

* gasmeter in  getContextForTx

Co-authored-by: KamiD <[email protected]>
  • Loading branch information
lcmmhcc and KamiD authored Apr 29, 2022
1 parent 6fe728d commit 10235d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/cosmos-sdk/baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ func (app *BaseApp) getContextForTx(mode runTxMode, txBytes []byte) sdk.Context

if mode == runTxModeSimulate {
ctx, _ = ctx.CacheContext()
ctx.SetGasMeter(sdk.NewInfiniteGasMeter())
}
if app.parallelTxManage.isAsyncDeliverTx && mode == runTxModeDeliverInAsync {
ctx.SetParaMsg(&sdk.ParaMsg{
Expand Down

0 comments on commit 10235d1

Please sign in to comment.