-
-
Notifications
You must be signed in to change notification settings - Fork 800
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[lang]: support top level "abi"
key in json interfaces
#4279
feat[lang]: support top level "abi"
key in json interfaces
#4279
Conversation
code = """ | ||
from . import json | ||
""" | ||
input_bundle = make_input_bundle({"json.json": json, "code.vy": code}) |
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.
maybe let's call the file abi.json
or stream.json
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.
looks good. did you find the commit where the regression was introduced?
No no, should i look into it? |
yes please -- i was going to include it when drafting the commit message |
I think it was always there.
when run against
The error was the same across all commits. |
something is weird, because we theoretically used to have code to handle this, e.g. vyper/vyper/cli/vyper_compile.py Lines 264 to 268 in 9136169
|
i didn't look deeply into the code, but in this link we don't flatten the "abi" dict into the list (which is what we do in this fix) |
so why is this considered a regression 🤔 paging @fubuloubu |
The regression might be that it didn't try and check anything was implemented because it was empty? This fix seems good regardless |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4279 +/- ##
===========================================
- Coverage 91.36% 46.08% -45.29%
===========================================
Files 110 110
Lines 15810 15812 +2
Branches 2678 2679 +1
===========================================
- Hits 14445 7287 -7158
- Misses 931 7974 +7043
- Partials 434 551 +117 ☔ View full report in Codecov by Sentry. |
"abi"
key in json interfaces
"abi"
key in json interfaces"abi"
key in json interfaces
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.
For Solidity development frameworks, this can be quite common. For example, using Hardhat, you get this as an example.
What I did
address #4231
How I did it
How to verify it
Commit message
Description for the changelog
Cute Animal Picture