Skip to content

Add ens set name command - #9

Merged
gskril merged 2 commits into
mainfrom
codex/add-set-name
Jul 22, 2026
Merged

gskril merged 2 commits into
mainfrom
codex/add-set-name

Conversation

@gskril

@gskril gskril commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

  • add ens set name <name> to generate ReverseRegistrar.setName calldata
  • discover the current ETH ReverseRegistrar from ownership of addr.reverse instead of hardcoding a registrar address
  • document transaction-sender semantics and the bidirectional resolution requirement for a functional primary name

Why

The CLI could set a reverse record during registration, but had no standalone command for changing an account's reverse record afterward.

Impact

Callers can now generate unsigned calldata for setting the transaction sender's ETH reverse record. The command returns the resolved reverse registrar alongside to, data, and value.

A reverse record is one half of a primary name. Primary-name resolution is functional only when the supplied name also forward-resolves to the same address.

Validation

  • bun run typecheck
  • bun test --pass-with-no-tests (repository currently contains no test files)
  • bun run build
  • git diff --check
  • verified command help output
  • verified live registrar discovery on mainnet and Sepolia

@pkg-pr-new

pkg-pr-new Bot commented Jul 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/ensdomains/ens-cli/@ensdomains/cli@9

commit: 807507b

@gskril
gskril marked this pull request as ready for review July 22, 2026 04:30
@gskril gskril changed the title Add primary name command Add ens set name command Jul 22, 2026
@gskril
gskril merged commit 9250eab into main Jul 22, 2026
3 checks passed
@gskril
gskril deleted the codex/add-set-name branch July 22, 2026 04:31
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.

1 participant