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

Feature Request: Split single file verifications into different files. #54

Open
0xTaiga opened this issue Apr 10, 2022 · 0 comments
Open

Comments

@0xTaiga
Copy link

0xTaiga commented Apr 10, 2022

Some contracts on Etherscan get verified as a single flat file making it hard to navigate them.

Here is a random example I took from the Etherscan's list of verified contracts.
https://etherscan.io/address/0x38b1c1be183a480835e9bc63c5acfd18eedd1cb0#code

I believe that can be accomplished by splitting the files at the terms:

  • contract
  • library
  • abstract
  • interface

The simply generating the import statements in each file for every other file even if not used as well as pragma statement for solidity version. Given they are all in same directory that is possible.

Given that the original file is flattened (does not have imports) that could work and will help study the contract better even if a few extra imports are generated. I assume those will be highlighted in VSCode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant