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

Handle missing contract when generating receipt #1058

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Gracefully handle a transaction where the target is a contract that has self destructed.

Fixes #1045

How I did it

try:except within _set_from_tx. Traces and other aspects of the receipt may still raise, but this way at least the object can be generated without issue.

@iamdefinitelyahuman iamdefinitelyahuman merged commit e8ac88a into master Apr 16, 2021
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix/missing-contract branch April 16, 2021 15:54
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.

Cannot chain.get_transaction for a transaction where the contract has self-destructed
1 participant