Trick or Treat

First Flight #27
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Unnecessary `changeOwner` function

Summary

Description: The SpookySwap contract has the changeOwner function that allows the owner to change the owner of the contract. However, the SpookySwap contract has the transferOwnership function that allows the owner to change the owner of the contract. The changeOwner function is unnecessary.

Line of code: TrickOrTreat.sol#L156

Impact

The changeOwner function is unnecessary and spends gas during the deployment.

Tools Used

  • Manual code analysis

Recommendations

Remove the changeOwner function from the smart contract.

Updates

Appeal created

bube Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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