Consensys / surya

A set of utilities for exploring Solidity contracts
Apache License 2.0
1.08k stars 119 forks source link

Old constructor pattern (same name as the contract) does not render correctly in "graph" #97

Closed GNSPS closed 4 years ago

GNSPS commented 5 years ago

If an old version of the Solidity compiler was used and the constructor still uses the syntax pattern where it has the same name as the contract it is in, the graph command renders it as a different node outside of the contract cluster.

maurelian commented 5 years ago

I came here to report this.

Running surya graph on this codebase is a good way to repro:

https://github.com/ConsenSys/panvala/blob/d65744451d3aa22c3dc2a91cd27241494a4f94d5/governance-contracts/contracts/TokenCapacitor.sol#L79

image

GNSPS commented 4 years ago

This is done in 0.3.x

Closing!