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

Generating the graph with type casting address(...) as a function. #134

Open andreitoma8 opened 1 year ago

andreitoma8 commented 1 year ago

When generating a call graph, the extensions sees typecasting like address(this) or address(some contract/interface) as a function and this is not only incorrect, but also visually clutters the chart. See example: image I think the fix should be pretty easy on this, just adding logic to ignore a function if it's name is address since that's impossible anyway in Solidity because the term is reserved for the type.