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

[audit2] #12 Remove reverse claiming from EARegistrarController #78

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

stevieraykatz
Copy link
Collaborator

Since the EA Registrar Controller will be a short-lived contract, opt out of claiming the reverse node.

From spearbit:
Null value is set as the resolver of reverse records for EARegistrarController
Status: New
Severity: Informational
AkshaySrivastav
AkshaySrivastav

created on Jul 22, 2024 at 06:17
Description
The constructor of EARegistrarController performs the IReverseRegistrar.claim call to claim its reverse records.

By analysing the deployment sequence of protocol contracts and the provided integration tests it can be seen that during the deployment of EARegistrarController the ReverseRegistrar::defaultResolver state variable is address(0) (as the default L2Resolver is not deployed yet). Hence the resolver of reverse records for EARegistrarController is set to address(0).

Assuming that the RegistrarController will be deployed after early registration period, this issue should not impact RegistrarController.

Recommendation
Make sure the owner of EARegistrarController manually sets the resolver of reverse records for EARegistrarController after protocol deployment.

Copy link
Collaborator

@cb-elileers cb-elileers left a comment

Choose a reason for hiding this comment

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

Issue makes sense, fix accomplishes goal.

@stevieraykatz stevieraykatz merged commit bd50b42 into Spearbit-second-audit Jul 23, 2024
1 of 2 checks passed
@stevieraykatz stevieraykatz deleted the audit2#12 branch July 23, 2024 23:25
stevieraykatz added a commit that referenced this pull request Jul 24, 2024
* [audit2] #2 Typos and Documentation (#72)

* Fix typo in PaymentReceiverUpdated

* Fix typo in L2Resolver commment

* Fix typos in L2Resolver and ReverseRegistrar natspec

* Fix comment in IPriceOracle

* Fix natspec in controllers

* Remove unused event (#71)

* [audit2] #4 Cleanup GRACE_PERIOD handling for launch auction (#73)

* Cleanup GRACE_PERIOD handling for launch auction

* Add GRACE_PERIOD to EARegistrarController

* [audit2] #5 Explicitly declare state visibility (#75)

* Explicitly declare state visibility

* Style guide

* Change resolver for reverse node when changing default resolver (#76)

* Remove reverse claiming from EARegistrarController (#78)

* Add IExtendedResolver supported signal for L2Resolver (#77)

* Add reverse node claim to L2 Resolver (#81)

* [audit2] #6 Remove addr.reverse setting from ReverseRegistrar (#74)

* Remove addr.reverse setting from ReverseRegistrar

* Address PR suggestion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants