• Martin Holst Swende's avatar
    core/vm: make gas cost reporting to tracers correct (#22702) · 65a1c2d8
    Martin Holst Swende authored
    Previously, the makeCallVariantGasCallEIP2929 charged the cold account access cost directly, leading to an incorrect gas cost passed to the tracer from the main execution loop.
    This change still temporarily charges the cost (to allow for an accurate calculation of the available gas for the call), but then afterwards refunds it and instead returns the correct total gas cost to be then properly charged in the main loop.
    65a1c2d8
runtime_test.go 23.8 KB