[Bug]: register domain with no --name silently registers a random label
Nobody has claimed this yet.
- Dominant language
- Solidity
- Stars
- 4
- Forks
- 2
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 24
Description
Component
Other
Priority
P3
What happened?
dotns register domain with no --name silently generates a random label and immediately starts the commit-reveal, spending the commit fee and (if left alone) the full registration price on a throwaway name. Reproduced with 0.9.0: a bare register domain invocation generated 90or4t8ufyo22 and went straight to submitting the commitment, no prompt.
Expected behavior
A missing --name should either be an error or require explicit confirmation before spending; random-label generation can stay behind a flag for test tooling.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The affected entry point is the dotns register domain command; reproduce a bare invocation and trace where a missing --name becomes a random label before commit-reveal submission. Done means the command refuses or explicitly confirms a missing name without spending fees, with regression coverage for the bare invocation if command tests exist.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100