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 ExitError::InvalidCode in gas estimation #840

Conversation

tgmichel
Copy link
Contributor

@tgmichel tgmichel commented Sep 2, 2022

With latest evm, gas estimation with binary search does not correctly handle InvalidCode. This PR fixes that, and prevents the binary search to be interrupted on that case.

Reported by @AMIRKHANEF

@tgmichel tgmichel requested a review from sorpaas as a code owner September 2, 2022 12:57
@AMIRKHANEF
Copy link

AMIRKHANEF commented Sep 3, 2022

@tgmichel it would be nice if you could mention who reported this issue ;)

@sorpaas sorpaas merged commit 233173e into polkadot-evm:master Sep 4, 2022
@tgmichel
Copy link
Contributor Author

tgmichel commented Sep 5, 2022

@tgmichel it would be nice if you could mention who reported this issue ;)

Absolutely. I'm sorry but I'm not aware of who reported it the moonbeam dev-rel team, did you?

tgmichel added a commit to moonbeam-foundation/frontier that referenced this pull request Sep 5, 2022
* Pin evm

* Support `InvalidCode` in gas estimation

* Add ts test

* EOF new line

(cherry picked from commit 233173e)

# Conflicts:
#	Cargo.lock
#	client/rpc/Cargo.toml
#	frame/ethereum/Cargo.toml
#	frame/evm/Cargo.toml
#	frame/evm/test-vector-support/Cargo.toml
#	primitives/evm/Cargo.toml
@AMIRKHANEF
Copy link

@tgmichel
Yes, I have reported this issue in the moonbeam discord community, I'm Amir Ekbatanifard from polkadot js Plus team.

abhijeetbhagat pushed a commit to web3labs/frontier that referenced this pull request Jan 11, 2023
* Pin evm

* Support `InvalidCode` in gas estimation

* Add ts test

* EOF new line
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.

3 participants