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

Update evm to 0.39 #2312

Merged
merged 8 commits into from
May 29, 2023
Merged

Update evm to 0.39 #2312

merged 8 commits into from
May 29, 2023

Conversation

librelois
Copy link
Collaborator

What does it do?

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@librelois librelois added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. breaking Needs to be mentioned in breaking changes labels May 23, 2023
Base automatically changed from upgrade-v0.9.40 to master May 25, 2023 12:28
tgmichel and others added 2 commits May 25, 2023 16:42
Fixed parameter in execute is_precompile_or_fail check

format
@fgamundi fgamundi marked this pull request as ready for review May 25, 2023 18:09
@github-actions
Copy link
Contributor

github-actions bot commented May 25, 2023

Coverage generated "Mon May 29 09:16:54 UTC 2023":
https://s3.amazonaws.com/moonbeam-coverage/pulls/2312/html/index.html

Master coverage: 70.88%
Pull coverage: 70.87%

fn is_precompile(&self, address: H160, _gas: u64) -> ::fp_evm::IsPrecompileResult {
fp_evm::IsPrecompileResult::Answer {
is_precompile: <#impl_type>::#discriminant_fn(address).is_some(),
extra_cost: 0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does that extra_cost mean ?

Copy link
Contributor

@tgmichel tgmichel May 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The associated cost of checking if it is a precompile

Copy link
Contributor

@tgmichel tgmichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discriminant function needs to be updated to be fallible

@tgmichel tgmichel added the A10-evmtracing Pull request includes evm tracing functionality label May 29, 2023
@tgmichel tgmichel merged commit 3178fdc into master May 29, 2023
@tgmichel tgmichel deleted the upgrade-evm-0.39 branch May 29, 2023 16:37
timbrinded pushed a commit that referenced this pull request Jun 2, 2023
* Update evm to 0.39

* Adapted tests

Fixed parameter in execute is_precompile_or_fail check

format

* Removed unused imports

* Wip fallible discriminant

* fmt

* wip fix test assets costs

* fix test assets costs

* TODO temp ignore precompile macro tests

---------

Co-authored-by: tgmichel <telmo@purestake.com>
Co-authored-by: Francisco Gamundi <francisco@purestake.com>
@librelois librelois added not-breaking Does not need to be mentioned in breaking changes and removed breaking Needs to be mentioned in breaking changes labels Jun 7, 2023
@notlesh notlesh added D1-audited👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited and removed D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A10-evmtracing Pull request includes evm tracing functionality B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D1-audited👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants