Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

pallet-multisig: Improve opaque call handling #10060

Merged
merged 5 commits into from
Oct 25, 2021

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Oct 19, 2021

Before the opaque call was just a type redefinition of Vec<u8>. With metadata v14 that was
breaking external tools, as they stopped looking at the type name. To improve the situation the
WrapperKeepOpaque type is introduced that communicates to the outside the correct type info.

Fixes: #10058

Before the opaque call was just a type redefinition of `Vec<u8>`. With metadata v14 that was
breaking external tools, as they stopped looking at the type name. To improve the situation the
`WrapperKeepOpaque` type is introduced that communicates to the outside the correct type info.
@bkchr bkchr added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Oct 19, 2021
/// Payment: `DepositBase` will be reserved if this is the first approval, plus
/// `threshold` times `DepositFactor`. It is returned once this dispatch happens or
/// is cancelled.
/// Payment: `DepositBase` will be reserved if this is the first appromes `DepositFactor`.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo, did you want to change this comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

No :P

Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

LGTM

@bkchr
Copy link
Member Author

bkchr commented Oct 25, 2021

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 456509d into master Oct 25, 2021
@paritytech-processbot paritytech-processbot bot deleted the bkchr-multisig-opaque-call branch October 25, 2021 11:29
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* pallet-multisig: Improve opaque call handling

Before the opaque call was just a type redefinition of `Vec<u8>`. With metadata v14 that was
breaking external tools, as they stopped looking at the type name. To improve the situation the
`WrapperKeepOpaque` type is introduced that communicates to the outside the correct type info.

* Cleanup

* Fix benchmarks

* FMT
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* pallet-multisig: Improve opaque call handling

Before the opaque call was just a type redefinition of `Vec<u8>`. With metadata v14 that was
breaking external tools, as they stopped looking at the type name. To improve the situation the
`WrapperKeepOpaque` type is introduced that communicates to the outside the correct type info.

* Cleanup

* Fix benchmarks

* FMT
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V14 metadata Extrinsic As_multi params lookup confused
4 participants