Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 955 Bytes

Function invocation repetitiveness.md

File metadata and controls

23 lines (20 loc) · 955 Bytes

Externally accessible functions (external/public visibility) may be called any number of times.

It is not safe to assume they will only be called only once or a specific number of times that is meaningful to the system design.

Function implementation should be robust enough to track, prevent, ignore or account for arbitrarily repetitive invocations.

For e.g., initialization functions (used with upgradeable contracts that cannot use constructors) are meant to be called only once.


Slide Screenshot

0144.jpg


Slide Text

  • Function Calls Repetitiveness -> How Many
  • Public/External Called Any # Times
  • State Transitions
  • Assumptions on # Calls
  • How Many -> Arbitrary Robust Handling

References


Tags