Hot answers tagged

2

You got the function selector right (0x2f0c92d3), but you failed to correctly ABI encode the address parameter. It should be left-padded with zeros so that it's 32 bytes wide. Try this instead: 0x2f0c92d3000000000000000000000000dc1f5d644e4016f3da89fe002f63fbeb8e071cf1


2

You might get more specific, on-point ideas if you describe what you DO want to do. web3 is merely an abstraction of lower-level methods, so yes, such methods exist. Other abstractions exist as well: other JS libraries libraries in other languages JSON RPC which is accessible via curl and tools like Postman Etherscan and MyEtherWallet provide a UI Mist ...


1

The ABI can be converted to a Solidity interface which contains all of the function names: In Python - abi2solc In Javascript - abi2solidity


1

There is no real problem with your code. Just take a look at the error message. It tells you that you only have 2 seconds time to execute your code. Cause of the nature of blockchain (and ethereum) your deploy will most likely take longer than this. So how do you fix it? In you project root folder you have a file called package.json. When running tests you ...


1

The function signature (which is a 4 bytes code) is used internally in solidity to call the function. However for a user interface to show the user some readable information it is useful to lookup the function name, which can be done via https://www.4byte.directory. Clef integrates the entire 4bytes database to provide the same information. Developers can ...


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