Skip to content

Meaningful error on failed trace#674

Merged
iamdefinitelyahuman merged 3 commits intomasterfrom
fix-txreceipt-slots
Jul 9, 2020
Merged

Meaningful error on failed trace#674
iamdefinitelyahuman merged 3 commits intomasterfrom
fix-txreceipt-slots

Conversation

@iamdefinitelyahuman
Copy link
Copy Markdown
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