Created
April 14, 2018 22:48
-
-
Save saurfang/529dbd46ac8729c679550abb669351c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// address of deployed contract | |
var contractAddress = '0xDd56dCD052548Ac005563f42d13B4D502deCd379'; | |
// get storage at slot 0 | |
var storageAt0; | |
web3.eth.getStorageAt(contractAddress, 0, (err, res) => { | |
// convert to uint | |
console.log(`0: uint8: ${web3.toDecimal(res)}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment