Skip to content

Instantly share code, notes, and snippets.

@fifiteen82726
Created May 5, 2019 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fifiteen82726/097f6cf6d71c266d73afdb5a9f4d8194 to your computer and use it in GitHub Desktop.
Save fifiteen82726/097f6cf6d71c266d73afdb5a9f4d8194 to your computer and use it in GitHub Desktop.
contract StorageTest {
uint256 a; // slot 0
uint256[2] b; // slots 1-2
struct Entry {
uint256 id;
uint256 value;
}
Entry c; // slots 3-4
Entry[] d;
Entry e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment