-
Notifications
You must be signed in to change notification settings - Fork 116
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
Support new import syntax through config.load #1511
Support new import syntax through config.load #1511
Conversation
🦋 Changeset detectedLatest commit: 58656c8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
81f4cff
to
1dd5725
Compare
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.
Lots of good stuff here, but a few missing pieces still I think.
- I don't think we should use placeholders (e.g.
0xHelloWorld
) for storing v2 contract aliases in config. We want to get away from them so something more hidden likelib.contract.0xHelloWorld
or something I think would be better. Less change people will use them then. And then flow v1 syntax won't occasionally work with v2 causing confusion. - I don't actually see the handling of the new import syntax mentioned in the CLI issue. That would be handled in
resolve-cadence.js
. Think that needs to get added. - I think the v2 json is slightly incorrect, but could be wrong. cc'd @sideninja on that.
Also, can you link a ticket and update the title to the type, package, description format please?
9b8b398
to
ac939cb
Compare
ac939cb
to
e907bf3
Compare
Looks good, left couple of comments, I think it's good idea to add another test proving the resolution of address |
I just found a bug in the load. It wasn't created in this PR, but can we fix it in it? The bug is that it still warns about private keys if you use a CLI env var like |
@justinbarry sir! We just got another good piece of feedback on How can we move forward with this PR? |
Let's make that another issue so I can get this out for testing. My hope was we would get this into master ready to release, but I don't think it is going to work out that way. |
e907bf3
to
6c9d312
Compare
Given Flow.json V2 is yet to be out in the wild, I ripped out all the references to it, and we can add them back later at a future date. The only outstanding question is what happens when a contract in flow.json has both an alias and a deployment.... which one wine? @sideninja Let's talk about this in the morning. Otherwise, this should be good to go. |
76d283d
to
7edc6ce
Compare
@justinbarry |
7edc6ce
to
5388407
Compare
5388407
to
e856f1c
Compare
e856f1c
to
58656c8
Compare
Addresses: #1514