Skip to content
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

_decodeLogs error on parsing hex topics #83

Open
nire5687298 opened this issue Jun 28, 2022 · 0 comments
Open

_decodeLogs error on parsing hex topics #83

nire5687298 opened this issue Jun 28, 2022 · 0 comments

Comments

@nire5687298
Copy link

abi-decoder has a dependency: "web3-utils": "^1.2.1".
That caused usage of web3-utils v1.7.3. Now it causes usage of web3-utils v1.7.4.
One of the changes between these versions is a wrapper around BN class added. The earlier version passed the args to the class through, but the new one tries to guess the base by looking "0x" at the beginning of the string.
Since abi-decoder removes "0x" from the value, bn.js tries to parse the value with base 10 and throws an error if the value contains letters or parses it with wrong base if doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant