Skip to content

Instantly share code, notes, and snippets.

@Suhail
Created May 15, 2018 02:21
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 Suhail/25f3357e3f80bbaa4fff0cb25be8790c to your computer and use it in GitHub Desktop.
Save Suhail/25f3357e3f80bbaa4fff0cb25be8790c to your computer and use it in GitHub Desktop.
var c = '0x592ea8777e0fd82a928bb24a40353ad86792375c'
var key = '0000000000000000000000000000000000000000000000000000000000000000';
var index_key = web3.sha3('myname').split('0x')[1]
var newKey = web3.sha3(key + index_key, {'encoding': 'hex'});
var d = web3.eth.getStorageAt(c, newKey);
console.log(d);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment