-
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
"coder.coders undefined" (Cannot read property 'forEach' of undefined) #3538
Comments
Can you share the function signature of the Solidity method you're calling and any relevant data type definitions so we can reproduce and fix? |
I encountered the same issue online example of the issue and the code I wrote. in the link below: I also asked about this issue on stackoverflow |
Hey guys, thanks for reporting, I was able to recreate the issue by adding a test for an array of tuples to test({
types: ['tuple(string,uint)[]'],
values: [[['item1', 2], ['item2', 3]]],
...
}); I will work on a PR to fix this. edit: see #3541 |
@ryanio thank you |
Getting this error on web3 1.7.0 |
|
Expected behavior
Properties of internal objects of the library should not be
undefined
.Actual behavior
The
coders
property of thecoder
variable isundefined
Steps to reproduce the behavior
I can't create a simple repo to reproduce it. I can only tell you that the only thing I changed on my codebase was the version of web3.js. From
1.2.1
to1.2.8
Logs
I am trying to send a transaction of which some of its parameters are an of type
tuple[]
. This line ofcode from
web3.js/packages/web3-eth-abi/src/index.js
fails with an error.
If I debug the error I see that the variable coder is
So
coder.coders
isundefined
butcoder.coder.coders
is[]
;By the way, the
param
variable isEnvironment
works fine with
fails with
I am using
"webpack": "^4.10.2",
to build the frontend app.The text was updated successfully, but these errors were encountered: