Storing custom structs in Cairo 1
Let’s imagine you are writing a Starknet smart contract in Cairo 1 and you want to store some complex data as the value of a map in your contract’s storage. You probably want to use a custom struct to save that complex data but you’ll find a small surprise.
- Davide Silva
- ·May2023
- cairo
- starknet