Skip to content

ENSIP-19 Fork tests for Base Mainnet#144

Merged
amiecorso merged 2 commits intomainfrom
amie/fork-tests-base-mainnet
Sep 8, 2025
Merged

ENSIP-19 Fork tests for Base Mainnet#144
amiecorso merged 2 commits intomainfrom
amie/fork-tests-base-mainnet

Conversation

@amiecorso
Copy link
Copy Markdown
Contributor

@amiecorso amiecorso commented Sep 8, 2025

Adds Base mainnet contract address and constants, refactors fork tests to reuse logic but use correct per-network constants for both base sepolia and base mainnet

@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented Sep 8, 2025

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@amiecorso amiecorso marked this pull request as ready for review September 8, 2025 21:44
// Set primary via legacy ReverseRegistrar directly
vm.prank(user);
// Set primary via legacy ReverseRegistrar directly (persist prank across nested calls)
vm.startPrank(user);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why start prank for only one call?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it's because the single prank is consumed by the call to _fullName that's happening during argument evaluation (since prank is only good for one external call), hence wrapping the whole expression in startPrank/stopPrank. Otherwise fails with unauthorized error bc caller isn't user.

@amiecorso amiecorso merged commit 048b5fa into main Sep 8, 2025
8 checks passed
@amiecorso amiecorso deleted the amie/fork-tests-base-mainnet branch September 8, 2025 22:45
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.

3 participants