Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor QA things #294

Merged
merged 2 commits into from
Dec 5, 2023
Merged

Minor QA things #294

merged 2 commits into from
Dec 5, 2023

Conversation

lcfr-eth
Copy link
Contributor

@lcfr-eth lcfr-eth commented Dec 4, 2023

Add commitments(bytes32) to interface for the Registrar as I was adding this manually to mine for some UI checks in a hook.

Also

While writing some unit tests I was reviewing the ENS contracts for all possible revert() instances and came across an instance with makeCommitment that allows the resolver to be address(0) and setting reverseResolver True will revert as the resolver is address(0).

As i saw there is a check for resolver != address(0) when data is supplied I thought it should be considered a similar/same kind of check.

A flawed frontend can submit commitments which can never register etc.

add commitments to the interface so uis can easily return/check if a commitment is valid in a pre-registration hook.
Copy link
Member

@Arachnid Arachnid left a comment

Choose a reason for hiding this comment

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

Thanks!

@Arachnid Arachnid merged commit 5ae0cd7 into ensdomains:staging Dec 5, 2023
4 checks passed
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.

2 participants