-
Notifications
You must be signed in to change notification settings - Fork 428
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
Update metadate to support payable constructors #1100
Conversation
f75135c
to
6275cc3
Compare
Codecov Report
@@ Coverage Diff @@
## master #1100 +/- ##
==========================================
- Coverage 78.83% 78.33% -0.50%
==========================================
Files 252 252
Lines 9391 9395 +4
==========================================
- Hits 7403 7360 -43
- Misses 1988 2035 +47
Continue to review full report at Codecov.
|
@@ -508,7 +536,7 @@ impl<S, P, R> MessageSpecBuilder<S, Missing<state::Mutates>, P, R> { | |||
} | |||
|
|||
impl<S, M, R> MessageSpecBuilder<S, M, Missing<state::IsPayable>, R> { | |||
/// Sets if the message is mutable, thus taking `&mut self` or not thus taking `&self`. | |||
/// Sets if the message is payable, thus accepting value for the caller. |
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.
Good catch!
6275cc3
to
a6b075a
Compare
* Bump rc7 to rc8 * Update changelog * Apply suggestions from code review Co-authored-by: GreenBaneling | Supercolony <XgreenX9999@gmail.com> * Fix `polkadot-js/api` links + mention PR #1100 * `s/polkadots/polkadot/g` * Fix typo: contract ➜ contracts Co-authored-by: GreenBaneling | Supercolony <XgreenX9999@gmail.com> Co-authored-by: Hernando Castano <hernando@hcastano.com>
* Add `payable` field to constructor metadata * Bump metadata version to `V3` * Update metadata tests for `payable` constructors
* Bump rc7 to rc8 * Update changelog * Apply suggestions from code review Co-authored-by: GreenBaneling | Supercolony <XgreenX9999@gmail.com> * Fix `polkadot-js/api` links + mention PR use-ink#1100 * `s/polkadots/polkadot/g` * Fix typo: contract ➜ contracts Co-authored-by: GreenBaneling | Supercolony <XgreenX9999@gmail.com> Co-authored-by: Hernando Castano <hernando@hcastano.com>
On top of #1065. I figured I'd split it out to make reviews easier.