From f054f386f1334d0ae2966e3755031431e1c560f1 Mon Sep 17 00:00:00 2001 From: nethoxa <135072738+nethoxa@users.noreply.github.com> Date: Sun, 20 Apr 2025 13:00:23 +0200 Subject: [PATCH] core: fix wrong refundGas when gasUsed < floorDataGas --- core/state_transition.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/state_transition.go b/core/state_transition.go index 0f9ee9eea51d..6c5f1d1c1e67 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -515,6 +515,7 @@ func (st *stateTransition) execute() (*ExecutionResult, error) { if rules.IsPrague { // After EIP-7623: Data-heavy transactions pay the floor gas. if st.gasUsed() < floorDataGas { + gasRefund = 0 prev := st.gasRemaining st.gasRemaining = st.initialGas - floorDataGas if t := st.evm.Config.Tracer; t != nil && t.OnGasChange != nil {