Skip to content

Hex data is odd-length intermittent error #1528

Answered by ricmoo
stevenbalagtas asked this question in Q&A
Discussion options

You must be logged in to vote

The hexValue is designed to return quantity types, which are hex values, with leading zeros removed. You should be getting that error 1 out of 16 times.

You want to use ethers.utils.hexlify.

(moving to discussions; issues are for bugs and feature requests)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stevenbalagtas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1527 on April 28, 2021 05:27.