Skip to content

Commit 23d0fa0

Browse files
committed
core: fix return wrong gasRefund
1 parent eab418b commit 23d0fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state_transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
505505
var gasRefund uint64
506506
if !st.evm.Config.IsSystemTransaction {
507507
// Compute refund counter, capped to a refund quotient.
508-
gasRefund := st.calcRefund()
508+
gasRefund = st.calcRefund()
509509
st.gas += gasRefund
510510
if rules.IsPrague {
511511
// After EIP-7623: Data-heavy transactions pay the floor gas.

0 commit comments

Comments
 (0)