Skip to content

Instantly share code, notes, and snippets.

@hsouna
Created April 26, 2021 21:16
Show Gist options
  • Save hsouna/9c4b6b0202597bb1c9eb91963d93511b to your computer and use it in GitHub Desktop.
Save hsouna/9c4b6b0202597bb1c9eb91963d93511b to your computer and use it in GitHub Desktop.
let storage = []
let callbackFn = (index) => (error,contractData) => {
storage[index] = contractData
}
for (var i=0; i<6;i++){
web3.eth.getStorageAt(contract.address,i,callbackFn(i))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment