Skip to content

Commit

Permalink
Fix result nil call
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Dec 18, 2019
1 parent 7ecb8df commit 4c9525a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte, tx sdk.Tx) (gInfo sdk.
),
)
}

result = nil
}

gInfo = sdk.GasInfo{GasWanted: gasWanted, GasUsed: ctx.GasMeter().GasConsumed()}
Expand All @@ -564,8 +566,7 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte, tx sdk.Tx) (gInfo sdk.
defer func() {
if mode == runTxModeDeliver {
ctx.BlockGasMeter().ConsumeGas(
ctx.GasMeter().GasConsumedToLimit(),
"block gas meter",
ctx.GasMeter().GasConsumedToLimit(), "block gas meter",
)

if ctx.BlockGasMeter().GasConsumed() < startingGas {
Expand Down

0 comments on commit 4c9525a

Please sign in to comment.