Description: The Ownable
contract from OpenZeppelin was inherited incorrectly as shown below:
causing the compiler error:
The error occurs because Ownable does not require any arguments when inherited. Instead, OpenZeppelin’s Ownable automatically sets msg.sender as the contract owner upon deployment.
Impact:
This issue causes deployment failure leading to delay in project timelines.
It could result in misconfigured access control if not fixed properly before deployment.
Recommended Mitigation:
The recommended fix is to remove msg.sender from the inheritance line, as follows:
This corrects the inheritance, allowing Ownable to initialize msg.sender as the owner upon deployment without requiring additional parameters.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.