Skip to content

[ENSIP 19] Update set primary flow for SCWs#2588

Merged
arjun-dureja merged 6 commits intomasterfrom
arjun/ensip19-set-primary
Sep 10, 2025
Merged

[ENSIP 19] Update set primary flow for SCWs#2588
arjun-dureja merged 6 commits intomasterfrom
arjun/ensip19-set-primary

Conversation

@arjun-dureja
Copy link
Collaborator

@arjun-dureja arjun-dureja commented Aug 19, 2025

What changed? Why?

  • Updated the flow for setting a primary Basename to be compatible with ensip19
    • This PR only updates the transaction made for smart accounts. A separate PR will be made for EOAs.
    • The transaction bundles two calls - one for calling the existing setNameForAddr on the ReverseRegistrar, and one for calling setName on the L2ReverseRegistrar

Notes to reviewers

How has it been tested?

Screen.Recording.2025-09-09.at.7.52.02.PM.mov

Have you tested the following pages?

BaseWeb

  • [] base.org
  • [] base.org/names
  • [] base.org/builders
  • [] base.org/ecosystem
  • [] base.org/name/jesse
  • [] base.org/manage-names
  • [] base.org/resources

@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Aug 19, 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

@vercel
Copy link

vercel bot commented Aug 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
base-web Ready Ready Preview Comment Sep 10, 2025 0:07am

functionName: 'setNameForAddr',
});
if (!paymasterServiceEnabled) {
await initiateTransaction({
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@amiecorso Here's where you'll need to update this flow for EOAs

const { initiateBatchCalls, batchCallsIsSuccess, batchCallsIsLoading } =
useWriteContractsWithLogs({
chain: secondaryUsernameChain,
eventName: 'update_primary_name',
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to correspond to an onchain event? or is it just for client handling?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's just for client side logging

@arjun-dureja arjun-dureja merged commit 8a89231 into master Sep 10, 2025
11 checks passed
@arjun-dureja arjun-dureja deleted the arjun/ensip19-set-primary branch September 10, 2025 02:13
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