Consensys / abi-decoder

Nodejs and Javascript library for decoding data params and events from ethereum transactions
GNU General Public License v3.0
633 stars 218 forks source link

UnhandledPromiseRejectionWarning: TypeError: _.toLowerCase is not a function #52

Open ch4r10t33r opened 4 years ago

ch4r10t33r commented 4 years ago

Decoding of few transactions fail with the error

UnhandledPromiseRejectionWarning: TypeError: _.toLowerCase is not a function

Example transaction: https://etherscan.io/tx/0xcaadaeb551de5f8b2d17849df9874daba0f895122912e1e040a9ecb84afffa3e

On analysis, it was found that the issue occurs in this line https://github.com/ConsenSys/abi-decoder/blob/master/index.js#L116 when param is a multidimensional array.

ch4r10t33r commented 4 years ago

Handled here: https://github.com/ConsenSys/abi-decoder/pull/54