feat[lang]: support top level "abi" key in json interfaces#4279
feat[lang]: support top level "abi" key in json interfaces#4279charles-cooper merged 7 commits intovyperlang:masterfrom
"abi" key in json interfaces#4279Conversation
| code = """ | ||
| from . import json | ||
| """ | ||
| input_bundle = make_input_bundle({"json.json": json, "code.vy": code}) |
There was a problem hiding this comment.
maybe let's call the file abi.json or stream.json
charles-cooper
left a comment
There was a problem hiding this comment.
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.
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