Declare s_ownervariable as immutable.
Currently, s_owner (which is the owner's address) is stored in storage.
Gas is used to retrieve s_owner from storage every time this contract is called.
Replit IDE, Foundry, Remix, PhindAI
The s_owner variable is declared as immutable. This means that its value can only be set once during the contract's construction and cannot be changed afterwards. This saves gas because the contract doesn't need to store the owner's address in storage, it can just use the msg.sender value from the constructor.
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.