Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass multiple solidity files #45

Open
whiskyfrenzy opened this issue Jan 14, 2022 · 2 comments
Open

Pass multiple solidity files #45

whiskyfrenzy opened this issue Jan 14, 2022 · 2 comments

Comments

@whiskyfrenzy
Copy link

It seems that this enhancement has been implemented through #22.

However, I can't figure out how to run solgraph to graph multiple .sol files and output a png file with all the functions in all the contracts mapped.

Some guidance or documentation in README would be greatly appreciated. Thanks!

@raineorshine
Copy link
Owner

raineorshine commented Jan 14, 2022

Yes, I can see how that is a bit confusing.

Despite #22, solgraph does not support multiple files. You can see only a single file gets read in and passed to solparser:

ast = solparser.parse(source)

As a workaround, you may be able to copy all source code into a single solidity file and pass it to solgraph. It would be nice if you could pass it a glob for multiple input files.

@whiskyfrenzy
Copy link
Author

I see, that's alright. It's a wonderful tool for visualisation, most of the time I can just "cat * > final.sol", remove a few lines and solgraph works. Thanks!

@raineorshine raineorshine changed the title Documentation for graphing multiple solidity files Pass multiple solidity files Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants