Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: traceCall having baseFee 0 despite gas price being set. #29787

Closed
wants to merge 1 commit into from

Conversation

stanleyjzheng
Copy link

@stanleyjzheng stanleyjzheng commented May 16, 2024

This fixes baseFee being zero despite gas prices being set.

There are situations in tracing where we would like the baseFee not to be zero. This is to get traces that are as accurate to transaction execution as possible. In the current implementation of NewEVM inside traceTx, the GasPrice is set to a dummy price of 0 despite the transaction including a gas price. This results in the block context base fee always being set to zero.

To solve this, we pass in the gas price provided by the transaction.

The bug was introduced in 064f37d during the rework of tracing.

@stanleyjzheng stanleyjzheng requested a review from s1na as a code owner May 16, 2024 01:40
@s1na
Copy link
Contributor

s1na commented May 22, 2024

Ah this was fixed as part of #29811, thanks.

@s1na s1na closed this May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants