-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
Add the contract name to the json key when requesting a combined_json format to match that of solidity #1754
Comments
Well Vyper doesn't have a contract name the contract name would then just be |
That is my preferred outcome as well. Just use the filename (minus the extension) as the contract name for compatibility. |
Also, this may not need to be an VIP? |
That |
we should probably have the contract name be the basename of the filename |
@gballet is this still something you need? |
Simple Summary
Solidity will output a
combined_json
whose primary keys are of the format<file name>:<contract name>
. Vyper only uses<file name>
. This forcesgeth
to have an overly complex piece of codeSpecification
-f combined_json
should return a json whose primary keys follow the<file name>:<contract name>
convention adopted by solidity.Backwards Compatibility
If this new format causes an issue to other clients, it would be possible to guard it with an extra
solidity_compat
flag, e.g.-f combined_json,solidity_compat
Copyright
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered: