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: decoding issues that affect tracing features such as coverage #1803

Merged
merged 3 commits into from
Jan 3, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Jan 2, 2024

What I did

maybe resolves #1777

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey marked this pull request as ready for review January 3, 2024 19:51
raise DecodingError(str(err)) from err
else:
# Use all zeroes.
vm_return_values = tuple([0 for _ in output_types_str_ls])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems like the user is getting hardhat to give them empty bytes for a 0 return in some weird case that i havent reproduced

raise DecodingError(str(err)) from err
if raw_data:
try:
vm_return_values = decode(output_types_str_ls, raw_data, strict=False)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

second change: use strict=False here to see if that resolves the problem. I remember having to do this somewhere else because of node oddities (probably hardhat!)

@antazoey antazoey enabled auto-merge (squash) January 3, 2024 21:59
@antazoey antazoey merged commit 2c30c3a into ApeWorX:main Jan 3, 2024
15 checks passed
@antazoey antazoey deleted the fix/decoding-issues branch January 4, 2024 14:53
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

Successfully merging this pull request may close these issues.

Tests fail with --coverage while they are 100% pass without --coverage
2 participants