EthTx / ethtx

Python package with core transaction decoding functions.
https://www.ethtx.info
Apache License 2.0
454 stars 73 forks source link

Break dynamic array decoding if there are no more available parameters to decode #141

Closed rmaganza closed 2 years ago

rmaganza commented 2 years ago

Tx 0xdb350b58a6e8bc99fc4ab8da4d38b9349393d9822d0df92af53ac1bcfa812714 completely breaks EthTx because there's a call taking a dynamic array of uint256 as input that apparently has a length of billions of billions, while there are only 62 non-null values, after which the data runs out and it keeps appending empty string to the decoded array.

This commit fixes this issue but breaking the decoding loop if the data runs out even if the declared length is bigger.