DatingDapp

First Flight #33
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Use Ownable2Step instead of Ownable

Summary

Contract SoulboundProfileNFT currently uses the OpenZeppelin's Ownable library. There is a risk that the contract owner accidentally calls method renounceOwnership() thus changing the contract owner to zero address or accidentally tranferring the ownership to a wrong address.

Impact

Possible complete loss of ownership of the contract.

Recommendations

Change the inherit from Ownable to Ownable2Step in order to prevent loss of the contract's ownership. Ownable2Step provides functionallity that only an address who can claim the ownership can become an owner.

Updates

Appeal created

n0kto Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas

Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.