-
Notifications
You must be signed in to change notification settings - Fork 480
Allow mutable parameters in messages #2004
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
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Tue Nov 28 18:09:16 CET 2023 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2004 +/- ##
==========================================
+ Coverage 53.23% 53.37% +0.13%
==========================================
Files 220 220
Lines 6845 6884 +39
==========================================
+ Hits 3644 3674 +30
- Misses 3201 3210 +9 ☔ View full report in Codecov by Sentry. |
ascjones
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.
LGTM. Would be nice to have a ui/pass test too for the specification, but I suppose it is covered by the unit test + integration test.
The unit test already covers that |
Indeed it does, so fine without it. Just pointing out that for the other cases in the unit test there is also a |
Summary
Closes #826
cargo-contractorpallet-contracts?Allows message to have
mutparameters.Description
Constructor already provides the ability to have
mutparameters as the parameter idents are replaced withink_binding_{n}during codegen. The main problem with messages occurring before had to do with thecontract_refcall builder. when extracting the ident frompatfor input binding during codegen,synautomatically includesmutkeyword. The solution is to go down the AST ofPatand extractidentfrom there. This is whatinput_message_idents()function does.Checklist before requesting a review
CHANGELOG.md