core: fix wrong refundGas when gasUsed < floorDataGas

This commit is contained in:
nethoxa 2025-04-20 13:00:23 +02:00
parent 5a7bbb423f
commit f054f386f1

View file

@ -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 {