QA Report #245
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
QA-1:
NameWrapper.setChildFuses
can be invoked upon an un-minted node, leaving an un-minted one but with non-zero fuses and expirylink: https://github.com/code-423n4/2022-07-ens/blob/ff6e59b9415d0ead7daf31c2ed06e86d9061ae22/contracts/wrapper/NameWrapper.sol#L456
If
node = _makeNode(parentNode, labelhash)
has not been minted before, this function will result in an un-minted node with non-zero fuses and expiry.QA-2: best practice
link: https://github.com/code-423n4/2022-07-ens/blob/ff6e59b9415d0ead7daf31c2ed06e86d9061ae22/contracts/wrapper/NameWrapper.sol#L555-L574
The
ens.setSubnodeRecord
is duplicated in both true and false branches. Move it out of the conditional branches can help improve the code quality and reduce deployment gas.The text was updated successfully, but these errors were encountered: