getStorageAt
Reads bytes of storage of length length
in the current contract, from the position defined by offset
.
Usage
_10interface ISafe {_10 function getStorageAt(uint256 offset, uint256 length) external view returns (bytes);_10}_10_10contract Example {_10 function example() ... {_10 (ISafe safe).getStorageAt(0, 1);_10 }_10}
Parameters
offset
- Type:
uint256
The offset in the current contract's storage in words to start reading from.
_10(ISafe safe).getStorageAt(_10 0,_10 1_10);
length
- Type:
uint256
The number of words (32 bytes) of data to read.
_10(ISafe safe).getStorageAt(_10 0,_10 1_10);
Returns
- Type:
bytes
The bytes that were read.