Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
julio4 committed Jan 28, 2025
1 parent 9267ef0 commit 4375409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/getting-started/basics/mappings.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Let's break down the key components:
- `write(key, value)`: Stores a value for a given key
- `read(key)`: Retrieves the value associated with a key
- Maps automatically initialize all values to zero
- Keys and values must be of valid storage types, see [Storing Custom Types](/getting-started/basics/storing-custom-types)
- Keys and values must be of valid storage types, see [Storing Custom Types](/getting-started/basics/storing_custom_types)

### Composite Keys

Expand All @@ -34,4 +34,4 @@ Under the hood, Cairo maps use a deterministic storage layout:

- Each key-value pair is stored at a unique address calculated using Pedersen hashes
- The address formula is: $\text{h}(...\text{h}(\text{h}(\text{sn\_keccak}(name),k_1),k_2),...,k_n)$ mod $2^{251} - 256$
- Learn more in the [Starknet Documentation](https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/contract-storage/#storage_variables)
- Learn more in the [Starknet Documentation](https://docs.starknet.io/architecture-and-concepts/smart-contracts/contract-storage/#storage_variables)
2 changes: 1 addition & 1 deletion pages/getting-started/basics/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ You can define [Storage Variables](/getting-started/basics/variables#storage-var
Both contracts above generate identical Sierra code. The compiler only generates code for storage variables that are actually used in contract functions. Declaring unused storage variables has no impact on contract size or gas costs.
:::

For more complex data structures, see [Storing Custom Types](/getting-started/basics/storing-custom-types).
For more complex data structures, see [Storing Custom Types](/getting-started/basics/storing_custom_types).

### Storage Space (advanced)

Expand Down

0 comments on commit 4375409

Please sign in to comment.