Inconsistent handling of verifying that only owner can retrieve password can lead to developer confusion
Assuming prior recommendation to add onlyOwner modifier to setPassword function is taken, the getPassword function will be implementing the same check in a different manner. This could lead to developer and/or contract consumer confusion in maintaining or using the contract and result in unnecessary code changes which may or may not affect contract security.
Low
Visual Studio Code
Create, if needed, the onlyOwner modifier...
then, modify the getPassword function as shown...
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.