Web3.js: 1.0: TypeError: Cannot read property 'length' of undefined

Created on 26 Jul 2017  路  7Comments  路  Source: ChainSafe/web3.js

When calling a contract method that does not have any arguments I am getting the following error: TypeError: Cannot read property 'length' of undefined.

It looks to be coming from _encodeMethodABI where args is undefined rather than an array.

Most helpful comment

Hello. It's still happening in 1.0.0-beta.24.

All 7 comments

There is a bug here. See my post and answer here:

https://ethereum.stackexchange.com/a/23062/7132

Will be fixed in the next version, thanks for noticing.

Should be fixed in beta.12

Thanks. Keep up the great work!

Hello. It's still happening in 1.0.0-beta.24.

Pls reopen this issue still exists in beta27 :)

I installed beta.48....still exists

Was this page helpful?
0 / 5 - 0 ratings