Open
Description
During the execution of the deploy method, a check of the onlyOwner
is performed, and this verifications result unnecessary since the method can only be executed during the contract's deployment, so the owner will never be established, thus there is no need for an identity verification.
This verification not only incurs additional gas costs but also forces the Owner to being the deployer, preventing it from being a cold wallet, which is not a recommended practice.
Recommendations
• Remove the call to the onlyOwner()
method during the deploy process, allowing the owner to be set to be different from the address performing the deployment.
Source Code References
Metadata
Metadata
Assignees
Labels
No labels