diff --git a/core/state_transition.go b/core/state_transition.go index 71cc2b885b..32b735e55f 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -447,7 +447,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) { UsedGas: st.gasUsed(), Err: vmerr, ReturnData: ret, - GasRefund: gasRefund, + GasRefund: gasRefund, }, nil } diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index cba6559c14..2dfc4dd511 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -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)