In this repo, I explained how storage variables are stored in storage slots, covering all the following Solidity data types:
- numbers
- strings
- addresses
- booleans
- bytes
- contracts
- enums
- arrays
- mappings
- structs
All the contracts in src have been deployed on ethereum sepolia so that storage tests can be executed on them.
forge build cast storage <ADDRESS> --rpc-url <your_rpc_url>