-
Notifications
You must be signed in to change notification settings - Fork 554
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
feat: flatten contracts #896
Conversation
version = build_json["compiler"]["version"] | ||
offset = slice(*build_json["offset"]) | ||
source = build_json["source"][offset] | ||
flattened_source = f"pragma solidity {version};{flattened_source}\n\n{source}\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flattened_source = f"pragma solidity {version};{flattened_source}\n\n{source}\n" | |
flattened_source = f"pragma solidity {version};\n\n{flattened_source}\n\n{source}\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's handled in line 144
This can be tested without deploying a new version.
|
a3c4b44
to
c0b0386
Compare
@iamdefinitelyahuman you force pushed a rebase? |
Commit included in #914. Closing this. |
What I did
Add functionality for flattening a contract.