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

fix: error attempting to log txhash in binary #1532

Merged
merged 8 commits into from
Jun 8, 2020

Conversation

unnawut
Copy link
Contributor

@unnawut unnawut commented May 25, 2020

Relates to #1477

Overview

Fix the error when attempting to log the transaction hash while it's still in binary format.

In the log, this error looks like {:error, %Jason.EncodeError{message: "invalid byte 0xDC in <<67, 111, 117, ...

Changes

  • Convert txhash to its hex string before logging

Testing

Each block submission should render the proper error message Could not get gas used for txhash ... after ... retries. instead of the encoding error.

@unnawut unnawut self-assigned this May 25, 2020
@unnawut
Copy link
Contributor Author

unnawut commented May 25, 2020

bruh, back to draft

@unnawut unnawut marked this pull request as draft May 25, 2020 16:37
@coveralls
Copy link

coveralls commented May 27, 2020

Coverage Status

Coverage remained the same at 78.166% when pulling b45c708 on unnawut/log-encoding-error into 077ab67 on master.

@unnawut unnawut marked this pull request as ready for review May 28, 2020 10:52
@unnawut unnawut merged commit 3c80a85 into master Jun 8, 2020
@unnawut unnawut deleted the unnawut/log-encoding-error branch June 8, 2020 14:41
@unnawut unnawut added the bug Something isn't working label Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants