-
Notifications
You must be signed in to change notification settings - Fork 757
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
EVM: move KZG precompile #2811
EVM: move KZG precompile #2811
Conversation
Ok, note: ethereum/EIPs#7214 We can also remove this multiple-precompiles-at-same-address logic 😅 (if that PR gets merged) |
evm: cleanup precompile getter
…s/ethereumjs-monorepo into update-4844-precompile-address
Codecov Report
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
||
interface Precompiles { | ||
[key: string]: PrecompileFunc | ||
interface PrecompileEntry { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks amazing
if (precompileFunc !== undefined) { | ||
precompileMap.set(addressString, precompileFunc) | ||
if ( | ||
(type === PrecompileAvailabilityCheck.Hardfork && common.gteHardfork(entry.check.param)) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Oh, yeah, that's a really nice PR! 👍 |
Implements
ethereum/EIPs#7172 (move KZG)
ethereum/EIPs#7214 (move BLS)
This PR also makes it possible to have multiple precompiles at the same address (of course, only one is active at the same time).
It also exports this precompileAvailability.
Note: we could consider removing the
precompiles
as well (we export it but I don't think it's used anywhere)