paritytech / paritytech/dotns

[Bug]: register domain with no --name silently registers a random label

Open
#294 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dotns-sdk P3 type: bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.