-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't call contract with uint256 as a parameter #178
Comments
Are you sure you are using a Rinkeby provider? Is there any reason the method would throw? Call exception means the response from the network was empty... |
Yes, I'm sure, because I can easily call any other method from the contract using ethers.js |
we are looking into this now. My partner has been trying it out. Is it possible to get the source code? No worries if not. |
I’m working on this either. mapping (uint256 => bool) public btcTransactions; I’ll try to prepare a snippet of code(but may be won’t be able to do this today). |
I think you may have a typo in your ABI or you are targeting an old version of your contract? Looking at the code on the blockchain there is no method jump destination in the EVM bytecode for The fact that truffle returns false, is an issue with Web3; it treats exceptions as the default zero value for the type. Try using a value that should return false in Truffle, and I suspect it will also return false. Let me know if you can verify this. |
I feel you are deadly right. |
Thanks! |
I have a contract with this part off ABI:
The contract can be found in the rinkeby test network on the address 0xf941b2f00aedd0bd8b98642a6e8232ccf02efd50.
But when i try to do the same thing using ethers.js I get the error:
I've tried different ways to resolve this:
but it didn't help.
Thanks.
The text was updated successfully, but these errors were encountered: