goimports

This commit is contained in:
Oren 2023-11-23 15:32:08 +02:00
parent b2a287c401
commit a1a17f23f0
2 changed files with 2 additions and 2 deletions

View file

@ -447,7 +447,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
UsedGas: st.gasUsed(),
Err: vmerr,
ReturnData: ret,
GasRefund: gasRefund,
GasRefund: gasRefund,
}, nil
}

View file

@ -1280,7 +1280,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNr
return 0, fmt.Errorf("gas required exceeds allowance (%d)", hi)
}
// Optimization: if the transaction succeeded with gasLimit set to the first execution's
// Optimization: if the transaction succeeded with gasLimit set to the first execution's
// usedGas + gasRefund, then return that value immediately. Else, continue with the binary search.
optimisticGasLimit := result.UsedGas + result.GasRefund
failed, _, err = executeEstimate(ctx, b, args, state.Copy(), header, gasCap, optimisticGasLimit)