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

add check in makeCommitment for resolver != address(0) when reverseRe… #293

Closed
wants to merge 2 commits into from

Conversation

lcfr-eth
Copy link
Contributor

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

Not critical or a big deal but:

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.
@lcfr-eth lcfr-eth closed this Dec 4, 2023
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.

None yet

1 participant