Consensys / vscode-solidity-auditor

Solidity language support and visual security auditor for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=tintinweb.solidity-visual-auditor
GNU General Public License v3.0
569 stars 60 forks source link

Syura Graph Feature Doesn't Work for Contracts with Named Mappings (0.8.18+) #137

Open RealJohnnyTime opened 11 months ago

RealJohnnyTime commented 11 months ago

When enabling the graph feature in a solidity contract of version 0.8.18 or higher, and if there exists a named mapping like mapping(address token => address owner) private data; the graph feature fails to function without providing any error messages. It simply does not generate the graph.

Has anyone else encountered this issue?

IAm0xAxe commented 11 months ago

Yeah,I've met too.

But I don't know what problem is causing it. Other contract files without mapping can open graph, contract files with mapping, indeed, cannot open graph.

spaceh3ad commented 8 months ago

Yeah, I have same error. Though I think it's Surya related problem since with cmd it also fails to produce graphs. It produces but empty images.

GNSPS commented 8 months ago

Possibly related to https://github.com/Consensys/surya/issues/190, which was just fixed in Surya v0.4.9.