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

Meaningful error on failed trace #674

Merged
merged 3 commits into from
Jul 9, 2020
Merged

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Raise a meaningful error when a call to debug_traceTransaction fails. Fixes #636.

How I did it

  • Remove __slots__ and __getattr__ logic from TransactionReceipt. This was unnecessarily complex and the root of the issue.
  • When an exception is raised while querying the trace, save it as _trace_exc and re-raise any time a trace attribute is accessed.

How to verify it

Run tests.

@iamdefinitelyahuman iamdefinitelyahuman merged commit 603b669 into master Jul 9, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-txreceipt-slots branch July 10, 2020 02:05
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.

@trace_property methods give confusing error on deployment transactions
1 participant