Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. So for the following contract snippet:
  2.  
  3. contract C {
  4. struct s { uint a; uint b; }
  5. uint x;
  6. mapping(uint => mapping(uint => s)) data;
  7. }
  8. 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