Add support for EIP-7939 (CLZ opcode)#400
Merged
sorpaas merged 5 commits intoJan 12, 2026
Merged
Conversation
sorpaas
approved these changes
Jan 12, 2026
Member
sorpaas
left a comment
There was a problem hiding this comment.
Looks straightforward. Let me know if it's ready.
Contributor
Author
|
Thank you @sorpaas ! I consider it ready 👍 |
librelois
approved these changes
Jan 12, 2026
manuelmauro
added a commit
to moonbeam-foundation/evm
that referenced
this pull request
Jan 13, 2026
* feat: ✨ add support for count leading zeros (CLZ) opcode * style: 🎨 fmt * refactor: ♻️ remove redundant check * refactor: 🚨 clippy * refactor: 🚨 more clippy
manuelmauro
added a commit
to moonbeam-foundation/moonbeam
that referenced
this pull request
May 8, 2026
Created `moonbeam-polkadot-stable2603` on `moonbeam-foundation/evm`. Upstream `rust-ethereum/evm` has moved to v1.0; the moonbeam fork stays on the 0.43.x line and there is no new upstream commit to pull. The new branch shares the same tip SHA as stable2512 (`bb9cdde4`) so both moonbeam-only commits — `a656db90` (the EIP-7939 CLZ-opcode cherry-pick of rust-ethereum/evm#400, which was merged upstream only on v1.0) and `bb9cdde4` (the MBF ethereum fork dep pin discovered in Phase 0.5) — are inherited as-is. Tick Phase 1.2 boxes in UPGRADE-stable2603.md and replace the `TBD` placeholder in the EIP-7939 row of `polkadot-sdk-stable2603.md` with the actual commit link.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements the Count Leading Zeros (CLZ) opcode as specified in https://eips.ethereum.org/EIPS/eip-7939.
Changes
CLZopcode (0x1e) toevm-coreclz()function returning leading zero count (256 for zero input)has_eip_7939config flag, enabled starting from Osaka forkG_LOW), matchingMULand consistent with both the EIP-7939 specification andgo-ethereum's implementation.Config::osaka()fork configuration