Closed iamdefinitelyahuman closed 4 years ago
When determining contract dependencies, properly handle enums and structs.
Related issue: https://github.com/eth-brownie/brownie/issues/712
Check nodeType and handle the node differently depending on ContractDefinition, StructDefinition or EnumDefinition.
nodeType
ContractDefinition
StructDefinition
EnumDefinition
Run tests. I've added a new case specifically around this.
What I did
When determining contract dependencies, properly handle enums and structs.
Related issue: https://github.com/eth-brownie/brownie/issues/712
How I did it
Check
nodeType
and handle the node differently depending onContractDefinition
,StructDefinition
orEnumDefinition
.How to verify it
Run tests. I've added a new case specifically around this.
Checklist