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

support eth_call for past blocks with old runtimes #1404

Conversation

librelois
Copy link
Contributor

@librelois librelois commented Apr 24, 2024

This PR #1257 introduced a regression that make the client not compatible with old runtimes.

Old runtimes doesn't check properly non transactional evm calls, old runtimes rely on the fact that max_fee_per_gas is None to consider the evm call non transactional.

It introduced a bug in Moonbeam where eth_call against past blocks produce the BalanceLow error.

Because we can't change old runtimes, the client should not set max_fee_per_gas as Some(zero), otherwize old runtimes will assume that the evm call is transactional.

@boundless-forest
Copy link
Collaborator

This patch LGTM, please fix the CI.

@boundless-forest boundless-forest merged commit e7fccf9 into polkadot-evm:master Apr 28, 2024
4 checks passed
boundless-forest added a commit that referenced this pull request Apr 30, 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.

2 participants