Gas Saving Tips: Use a modifier to save gas.
Currently, a require() function is used to restrict access to the setPassword() and getPassword() functions to only the owner of the contract.
A check is done any time either of setPassword() and getPassword() functions are called, and these checks would use extra gas.
Replit IDE, Foundry, Remix, PhindAI
A onlyOwner modifier should be created and used to restrict access to the setPassword() and getPassword() functions. This modifier checks if the sender is the owner of the contract and throws an error if they are not. This saves gas because the check is done only once per function call, instead of being done in each function.
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.