Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 205 Bytes

File metadata and controls

9 lines (6 loc) · 205 Bytes

The to_mem function

Reference type values can be copied from storage and into memory using the to_mem function.

Example:

my_array_var: Array<u256, 10> = self.my_array_field.to_mem()