Skip to content

Commit

Permalink
Remove redundant gInfo setting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Dec 19, 2019
1 parent 126edf5 commit 6bee805
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,6 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte, tx sdk.Tx) (gInfo sdk.
gasWanted = ctx.GasMeter().Limit()

if err != nil {
gInfo = sdk.GasInfo{GasWanted: gasWanted, GasUsed: ctx.GasMeter().GasConsumed()}
return gInfo, nil, err
}

Expand All @@ -629,7 +628,6 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte, tx sdk.Tx) (gInfo sdk.
msCache.Write()
}

gInfo = sdk.GasInfo{GasWanted: gasWanted, GasUsed: runMsgCtx.GasMeter().GasConsumed()}
return gInfo, result, err
}

Expand Down

0 comments on commit 6bee805

Please sign in to comment.