Skip to content
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

Merged
merged 3 commits into from
Jan 18, 2022

Conversation

HCastano
Copy link
Contributor

On top of #1065. I figured I'd split it out to make reviews easier.

@HCastano HCastano changed the base branch from master to hc-make-constructors-non-payable January 10, 2022 01:10
@HCastano HCastano requested a review from a team as a code owner January 10, 2022 01:10
@HCastano HCastano removed the request for review from a team January 10, 2022 01:10
@HCastano HCastano changed the base branch from hc-make-constructors-non-payable to master January 10, 2022 01:15
@HCastano HCastano changed the base branch from master to hc-make-constructors-non-payable January 10, 2022 01:15
@HCastano HCastano force-pushed the hc-non-payable-constructors-metadata branch from f75135c to 6275cc3 Compare January 10, 2022 01:47
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2022

Codecov Report

Merging #1100 (a6b075a) into master (e646ddd) will decrease coverage by 0.49%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
crates/metadata/src/lib.rs 0.00% <0.00%> (ø)
crates/lang/codegen/src/generator/metadata.rs 97.39% <100.00%> (+0.02%) ⬆️
crates/metadata/src/specs.rs 73.95% <100.00%> (+0.62%) ⬆️
crates/eth_compatibility/src/lib.rs 0.00% <0.00%> (-74.08%) ⬇️
crates/primitives/src/key_ptr.rs 75.00% <0.00%> (-25.00%) ⬇️
crates/engine/src/test_api.rs 73.80% <0.00%> (-20.24%) ⬇️
crates/engine/src/ext.rs 65.51% <0.00%> (-6.90%) ⬇️
crates/allocator/src/bump.rs 66.66% <0.00%> (+4.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e646ddd...a6b075a. Read the comment docs.

@@ -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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Base automatically changed from hc-make-constructors-non-payable to master January 18, 2022 03:39
@HCastano HCastano force-pushed the hc-non-payable-constructors-metadata branch from 6275cc3 to a6b075a Compare January 18, 2022 03:45
@HCastano HCastano merged commit 47b1fa3 into master Jan 18, 2022
@HCastano HCastano deleted the hc-non-payable-constructors-metadata branch January 18, 2022 04:59
HCastano added a commit that referenced this pull request Jan 19, 2022
cmichi added a commit that referenced this pull request Jan 20, 2022
* Bump rc7 to rc8

* Update changelog

* Apply suggestions from code review

Co-authored-by: GreenBaneling | Supercolony <[email protected]>

* Fix `polkadot-js/api` links + mention PR #1100

* `s/polkadots/polkadot/g`

* Fix typo: contract ➜ contracts

Co-authored-by: GreenBaneling | Supercolony <[email protected]>
Co-authored-by: Hernando Castano <[email protected]>
xgreenx pushed a commit to Supercolony-net/ink that referenced this pull request Feb 8, 2022
* Add `payable` field to constructor metadata

* Bump metadata version to `V3`

* Update metadata tests for `payable` constructors
xgreenx added a commit to Supercolony-net/ink that referenced this pull request Feb 8, 2022
* Bump rc7 to rc8

* Update changelog

* Apply suggestions from code review

Co-authored-by: GreenBaneling | Supercolony <[email protected]>

* Fix `polkadot-js/api` links + mention PR use-ink#1100

* `s/polkadots/polkadot/g`

* Fix typo: contract ➜ contracts

Co-authored-by: GreenBaneling | Supercolony <[email protected]>
Co-authored-by: Hernando Castano <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants