-
Notifications
You must be signed in to change notification settings - Fork 40
feat: make pop up <contract> interactive
#606
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
Conversation
pop up <contract> interactive
fc22124 to
c8fda9d
Compare
AlexD10S
left a comment
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.
Really enjoyed reviewing this PR, super clean and easy to follow 👏. I only left a small note about a unit test, and GitHub triggers a clippy warning.
I tested the behaviour and the DevEx feels great, nice work! 🎉
One thought: a contract could technically have multiple constructors, but probably not worth addressing now. Since ink! v6 is moving toward Solidity compatibility with a single constructor, the current approach (using the default) seems like the best DevEx. And if needed, users can always specify a different constructor with the --constructor flag.
AlexD10S
left a comment
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.
Thanks for adding the test, LGTM!
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #606 +/- ##
==========================================
- Coverage 79.36% 77.02% -2.35%
==========================================
Files 106 108 +2
Lines 25979 24785 -1194
Branches 25979 24785 -1194
==========================================
- Hits 20619 19090 -1529
- Misses 3073 3694 +621
+ Partials 2287 2001 -286
... and 25 files with indirect coverage changes 🚀 New features to boost your workflow:
|
pop up <contract> interactivepop up <contract> interactive
Closes #502
This PR makes the
pop up path/to/my/contractcommand interactive.Since I was on it, I also removed some redundant code, which got encapsulated in utility functions.
Example