Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 932 Bytes

File metadata and controls

24 lines (21 loc) · 932 Bytes

Modifiers should only implement checks and not make state changes and external calls which violates the checks-effects-interactions pattern.

These side-effects may go unnoticed by developers/auditors because the modifier code is typically far from the function implementation.

(see here)


Slide Screenshot

07.jpg


Slide Text

  • Modifier Side-Effects
  • Modifiers -> Checks
  • No Side-Effects
  • Unnoticed Side-effects
  • Readability & Auditability
  • No Side-effects
  • Only Checks

References


Tags