fix rebase issue

Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
This commit is contained in:
Guillaume Ballet 2025-04-14 09:46:31 +02:00
parent f4e0f1bc46
commit 69068cd35b

View file

@ -127,7 +127,7 @@ func (ae *AccessEvents) ValueTransferGas(callerAddr, targetAddr common.Address,
return expected1 return expected1
} }
_, expected2 := ae.touchAddressAndChargeGas(targetAddr, zeroTreeIndex, utils.BasicDataLeafKey, true, availableGas-expected1) _, expected2 := ae.touchAddressAndChargeGas(targetAddr, zeroTreeIndex, utils.BasicDataLeafKey, true, availableGas-expected1)
if expected1+expected2 > availableGas { if expected1+expected2 == 0 {
return params.WarmStorageReadCostEIP2929 return params.WarmStorageReadCostEIP2929
} }
return expected1 + expected2 return expected1 + expected2