Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Skip getting contract node if there's no AST #1875

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

haltman-at
Copy link
Contributor

This PR fixes this issue that was reported over on the Ganache repo. The problem appears to be that Ganache passes all contracts in to the contract decoder as relevant contracts, even ones that aren't Solidity. These don't have an AST, and, as such, cause an error when we try to find their contract node. So, I've changed the code for getting the contract nodes so it will skip any lacking an AST (or that have an AST but can't find the contract node for whatever reason).

@haltman-at haltman-at requested a review from gnidan April 3, 2019 02:34
@coveralls
Copy link

Coverage Status

Coverage remained the same at 69.648% when pulling 9dae79a on skip-allocation-vyper into a06a8c3 on develop.

@haltman-at haltman-at merged commit 210fe58 into develop Apr 3, 2019
@haltman-at haltman-at deleted the skip-allocation-vyper branch April 3, 2019 20:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System Error when running Ganache 2.0.0-beta.2 on darwin
3 participants