-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Getting Error: Invalid bytes string given: 0x [web3@1.0.0-beta.48] on simple Solidity view function #2527
Comments
Will check this closer asap. |
I'm having exactly the same issue. @nivida what clarification do you need? |
I'm too facing same issue , Is there any update on this? |
Same issue. |
Same for me. Works fine after downgrading to |
I still get it on beta 51 |
Similar issue with beta-58 |
I think downgrading and upgrading shouldn't be the solution for this problem. |
*I've looked into the other issues related to this error, but this is caused by something different
Description
Using
web3@1.0.0-beta.48
I have the following contract function:The Web3 code is:
Contract class already has an address and the method does not require any params.
I've tried adding the
{ from: "0xadress" }
, but it makes no difference.Expected behavior
Return the value of the Solidity
data.length
asuint count
.As a note, I've debugged the contract using https://remix.ethereum.org/ and the
getVersionIndex()
function works as expected.Error Logs
The error is originating at
AbiCoder.decodeParameters
ofweb3-eth-abi.umd.js:65
:Versions
The text was updated successfully, but these errors were encountered: