-
Notifications
You must be signed in to change notification settings - Fork 429
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
Allow mutable parameters in messages #2004
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. |
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-contract
orpallet-contracts
?Allows message to have
mut
parameters.Description
Constructor already provides the ability to have
mut
parameters as the parameter idents are replaced withink_binding_{n}
during codegen. The main problem with messages occurring before had to do with thecontract_ref
call builder. when extracting the ident frompat
for input binding during codegen,syn
automatically includesmut
keyword. The solution is to go down the AST ofPat
and extractident
from there. This is whatinput_message_idents()
function does.Checklist before requesting a review
CHANGELOG.md