You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im having an issue calling a solidity function
following the trace in the stack and comparing to byte code I can see that it is trying to match the target function signature and the available function signatures
but there is no match and it falls past all of them and hits the STOP
The ways to generate the hashes are the same: web3.sha3 returns a string of the form "0xabcde...", so slicing it at (2, 10) is correct. Can you tell us the signatures of the functions?
im having an issue calling a solidity function
following the trace in the stack and comparing to byte code I can see that it is trying to match the target function signature and the available function signatures
but there is no match and it falls past all of them and hits the STOP
web3 is 0.4.2, solc is 0.9.21
methods
target
hard to tell but it seems like this is where cpp is generating the hashes of the methods
u256(FixedHash<4>::Arith(it.first))
https://github.com/ethereum/cpp-ethereum/blob/80ff45c4ef2a8b40f97c53a87118a92089f26a2f/libsolidity/Compiler.cpp#L180
whereas web3 does this
web3.sha3(web3.fromAscii(this._name)).slice(2, 10);
https://github.com/ethereum/web3.js/blob/25d9f5121735b76481b2518fe49ae285b75bac4d/lib/web3/function.js#L71-L73
The text was updated successfully, but these errors were encountered: