Skip to content

Commit

Permalink
don't pass IntrinsicGas
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield authored and hkalodner committed Dec 20, 2021
1 parent 43eab5d commit 229bd44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var emptyCodeHash = crypto.Keccak256Hash(nil)

type TxProcessingHook interface {
InterceptMessage() *ExecutionResult
GasChargingHook(gasRemaining *uint64, intrinsicGas uint64) error
GasChargingHook(gasRemaining *uint64) error
EndTxHook(totalGasUsed uint64, success bool) error
}

Expand Down Expand Up @@ -328,7 +328,7 @@ func (st *StateTransition) transitionDbImpl() (*ExecutionResult, error) {
st.gas -= gas

if st.processingHook != nil {
err = st.processingHook.GasChargingHook(&st.gas, gas)
err = st.processingHook.GasChargingHook(&st.gas)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 229bd44

Please sign in to comment.