Making the owner private field as immutable, improves gas usage on deployment and getPassword.
The following gas reports are generated via forge test --gas-report.
| src/PasswordStore.sol:PasswordStore contract | |||||
|---|---|---|---|---|---|
| Deployment Cost | Deployment Size | ||||
| 225780 | 1067 | ||||
| Function Name | min | avg | median | max | # calls |
| getPassword | 1320 | 3072 | 2825 | 5320 | 4 |
| setPassword | 4686 | 16546 | 23786 | 23786 | 5 |
| src/PasswordStore.sol:PasswordStore contract | |||||
|---|---|---|---|---|---|
| Deployment Cost | Deployment Size | ||||
| 209477 | 1093 | ||||
| Function Name | min | avg | median | max | # calls |
| getPassword | 228 | 1469 | 1217 | 3217 | 4 |
| setPassword | 4686 | 16546 | 23786 | 23786 | 5 |
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.