Skip to content

feat: add erc7201 builtin#877

Open
DaniPopes wants to merge 4 commits into
mainfrom
dani/erc7201-builtin
Open

feat: add erc7201 builtin#877
DaniPopes wants to merge 4 commits into
mainfrom
dani/erc7201-builtin

Conversation

@DaniPopes

Copy link
Copy Markdown
Collaborator

Closes #867.

This adds the solc 0.8.35 erc7201(string memory) builtin as a pure global builtin returning uint256. Constant evaluation and codegen use the ERC-7201 namespace slot formula, including the full-width subtraction before masking the low byte.

The new UI coverage lives under tests/ui/erc7201 and ports matching solc cases for accepted arguments, invalid calls, constant assignment, layout at, compile-time evaluation, and MIR lowering for literal, memory, calldata, and storage string inputs.

@DaniPopes DaniPopes requested a review from onbjerg as a code owner June 22, 2026 21:27
@codspeed-hq

codspeed-hq Bot commented Jun 22, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 76 untouched benchmarks


Comparing dani/erc7201-builtin (3716793) with main (d5b459f)

Open in CodSpeed

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.

erc7201(...) builtin (solc 0.8.35) reported as unresolved symbol

1 participant