Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Low/QA


Typo for event SetNetPassword, update for better readability and understanding.

Link

  • https://github.com/Cyfrin/2023-10-PasswordStore/blob/856ed94bfcf1031bf9d13514cb21b591d88ed323/src/PasswordStore.sol#L16

  • https://github.com/Cyfrin/2023-10-PasswordStore/blob/856ed94bfcf1031bf9d13514cb21b591d88ed323/src/PasswordStore.sol#L28

Recommendations

  • Change SetNetPassword to SetNewPassword to reflect the intention of event correctly



Use immutable keyword with s_owner variable

Link

https://github.com/Cyfrin/2023-10-PasswordStore/blob/856ed94bfcf1031bf9d13514cb21b591d88ed323/src/PasswordStore.sol#L14

Recommendations

  • Since s_owner can only be assigned at construction time, add immutable keyword to save on gas.

address private immutable s_owner;
Updates

Lead Judging Commences

inallhonesty Lead Judge
about 2 years ago
inallhonesty Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.