Last active
March 22, 2022 10:51
-
-
Save hackingbeauty/e2a14af31ecd6273bb6f79025d77986e to your computer and use it in GitHub Desktop.
Code snippet used in "Smart Contract Security Fundamentals" course: https://security.6figureblockchaindeveloper.com/smart-contract-security-fundamentals
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
let storage = [] | |
let callbackFNConstructor = (index) => (error, contractData) => { | |
storage[index] = contractData | |
} | |
for(var i = 0; i < 6; i++) { | |
web3.eth.getStorageAt(contract.address, i, callbackFNConstructor(i)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment