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

Allow basefee as Yul identifier for EVMVersion < london #11763

Merged
merged 2 commits into from
Aug 11, 2021

Conversation

hrkrshnn
Copy link
Member

@hrkrshnn hrkrshnn commented Aug 9, 2021

This was done to prevent basefee from being a breaking change. This change will be removed in 0.9.0.

TODO revert this commit in breaking.

  • The first commit needs to be reverted in breaking.

@hrkrshnn hrkrshnn force-pushed the basefee-hasOpcode branch 3 times, most recently from 3f9fb52 to a8418ce Compare August 9, 2021 10:55
@hrkrshnn hrkrshnn requested review from ekpyron and leonardoalt August 9, 2021 10:57
@hrkrshnn hrkrshnn force-pushed the basefee-hasOpcode branch from a8418ce to 0c8b612 Compare August 9, 2021 12:10
ekpyron
ekpyron previously approved these changes Aug 9, 2021
@hrkrshnn hrkrshnn force-pushed the default-evmversion-london branch 4 times, most recently from f7794d0 to 87b486b Compare August 9, 2021 14:45
@hrkrshnn
Copy link
Member Author

Will rebase this now.

assembly {
ret := basefee()
}
}
}
// ====
// EVMVersion: =berlin
Copy link
Member

Choose a reason for hiding this comment

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

Starting from here you can then make it <=, though :-).

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll change this once everything gets merged :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, will do this now.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

Base automatically changed from default-evmversion-london to develop August 11, 2021 08:42
@hrkrshnn hrkrshnn requested a review from ekpyron August 11, 2021 08:44
}
// ====
// compileViaYul: also
// EVMVersion: =berlin
Copy link
Member

Choose a reason for hiding this comment

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

If you change the other one to <= you can do this one as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also fixed.

This was done to prevent basefee from being a breaking change. This change will be removed in 0.9.0.

TODO revert this commit in breaking.
Also added basefee to `EVMVersion::hasOpcode(...)`
@ekpyron ekpyron enabled auto-merge August 11, 2021 09:12
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