@contract.storageAt
Read a raw storage slot of a contract.
Returns: bytes32
Syntax
Section titled “Syntax”@contract.storageAt(address slot)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
address |
address |
Contract or account address |
slot |
bytes32 |
Storage slot index |
Examples
Section titled “Examples”# Read storage slot 0set $val @contract.storageAt(0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d 0x0000000000000000000000000000000000000000000000000000000000000000)See Also
Section titled “See Also”- @contract.codeAt — read bytecode
- sim:set-storage-at — override a slot in simulation