The contract MultiSig.sol
declares owner1
and owner2
as regular state variables, but they are only assigned once in the constructor. Changing them to immutable will improve gas efficiency.
The variables owner1
and owner2
are set only once during contract deployment. Since these values never change after deployment, declaring them as immutable reduces gas costs when accessing them, as immutable variables are stored in bytecode instead of storage.
Reduces gas costs when reading owner1
and owner2
.
Optimizes contract storage by avoiding unnecessary state variable storage slots.
Manual Review
Change owner1
and owner2
to immutable for gas efficiency:
This ensures that they remain unchanged while optimizing gas usage during contract execution.
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.