Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- So for the following contract snippet:
- contract C {
- struct s { uint a; uint b; }
- uint x;
- mapping(uint => mapping(uint => s)) data;
- }
- The position of data[4][9].b is at keccak256(uint256(9) . keccak256(uint256(4) . uint256(1))) + 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement