-
Notifications
You must be signed in to change notification settings - Fork 549
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
Flatten contract source using CLI #849
Labels
enhancement
New feature or request
Comments
This could be useful as a flag within |
Implemented by #914. |
@matnad looks like 'flattened_source' is no longer available in 1.17.0? |
same here using 1.18.1 dont recognize the key |
container = YourContractName
print("\n\n".join([x['content'] for x in container.get_verification_info()['standard_json_input']['sources'].values()])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
Currently, Brownie doesn't provide a way to flattening smart contracts. Feature for flattening smart contracts can be a way for testing contracts with Brownie, while deploying them using another tool. Also, it can simplify the tasks required for verifying an smart contract on the Etherscan.
Specification
For the CLI following simple argument can be used:
Dependencies
#411 is related to this issue. Because, probably flattening smart contracts (written in Solidity) will make it easier to verify them on Etherscan.
The text was updated successfully, but these errors were encountered: