Hot answers tagged

1

Which storage slots are allocated for which contract variable depends on the language and/or compiler. The Solidity compiler has an option to output the storage layout as a JSON structure: https://solidity.readthedocs.io/en/latest/internals/layout_in_storage.html#json-output In the Solidity language you can use .slot in assembly to get the storage slot of a ...


1

The function changes execution according to signature passed if (bytes(signatures[i]).length == 0) { callData = data[i]; } else { callData = abi.encodePacked(bytes4(keccak256(bytes(signatures[i]))), data[i]); } If it is empty it will assume the function call is contained in data[i]. You would have to use web3.eth.abi....


Only top voted, non community-wiki answers of a minimum length are eligible