Skip to content

Latest commit

 

History

History
20 lines (20 loc) · 853 Bytes

Modifying reference type parameters.md

File metadata and controls

20 lines (20 loc) · 853 Bytes

Structs/Arrays/Mappings passed as arguments to a function may be by value (memory) or reference (storage) as specified by the data location (optional before solc 0.5.0). Ensure correct usage of memory and storage in function parameters and make all data locations explicit. (see here)


Slide Screenshot

058.jpg


Slide Text

  • Function Parameters
  • Reference Types
  • Pass by Value
  • Pass by Reference
  • Structs/Arrays/Mappings
  • Memory vs. Storage
  • Unexpected Changes
  • Aware: Value/Reference

References


Tags