Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/vm: make gas cost reporting to tracers correct (ethereum#22702)
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.
- Loading branch information