Skip to content

Commit

Permalink
improve struct slot wording
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari committed Aug 18, 2023
1 parent 298532c commit 89c3d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/dev_docs/testing/cheat_codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public async loadPublic(who: AztecAddress, slot: Fr | bigint): Promise<Fr>
#### Description
Loads the value stored at the given slot in the public storage of the given contract.

Note: One Field element occupies a storage slot. Hence, structs with multiple field elements will be spread over multiple slots, rather they will be spread over multiple sequential slots. Using loadPublic will only load a single field of the struct (depending on the size of the attributes within it).
Note: One Field element occupies a storage slot. Hence, structs with multiple field elements will be spread over multiple sequential slots. Using loadPublic will only load a single field of the struct (depending on the size of the attributes within it).

#### Example
```rust
Expand Down

0 comments on commit 89c3d8e

Please sign in to comment.