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
571 stars 60 forks source link

Flaterra does not support importing contracts from node_modules. #22

Closed alesanro closed 5 years ago

alesanro commented 5 years ago

Probably it will be better to use truffle-flattener and run flattening command with npx truffle-flattener inputfile > output?

tintinweb commented 5 years ago

Hi @alesanro,

I agree we need a more consistent way for flattening files. I'll look into that, thanks for the input!

tintinweb commented 5 years ago

a quick update on this matter: I am going to change flaterra for the flattener extension I just published. It is just a vscode integration for truffle-flattener. Having this as it's own extension allows us to be more flexible in the future (and vscode-auditor will be able to interface with the flattener extension e.g. to flatten all top level contracts. going to merge this soon). the extension will come bundled with vscode auditor. This should close this issue :)

https://marketplace.visualstudio.com/items?itemName=tintinweb.vscode-solidity-flattener adds a context menu "flatten selected files" to the vscode explorer.