ensdomains / ens-contracts

The core contracts of the ENS protocol
https://ens.domains/
MIT License
572 stars 394 forks source link

Minor QA things #294

Closed lcfr-eth closed 9 months ago

lcfr-eth commented 9 months ago

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.