From d322ce0696a69b57210645505282bace93859654 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Rios Date: Mon, 8 Jul 2024 17:31:26 +0200 Subject: [PATCH 1/3] add `pub` to xcm::v4::PalletInfo --- polkadot/xcm/src/v4/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/polkadot/xcm/src/v4/mod.rs b/polkadot/xcm/src/v4/mod.rs index 57840562ba3e..2a279f989e9b 100644 --- a/polkadot/xcm/src/v4/mod.rs +++ b/polkadot/xcm/src/v4/mod.rs @@ -231,15 +231,15 @@ parameter_types! { #[derive(Clone, Eq, PartialEq, Encode, Decode, Debug, TypeInfo, MaxEncodedLen)] pub struct PalletInfo { #[codec(compact)] - index: u32, - name: BoundedVec, - module_name: BoundedVec, + pub index: u32, + pub name: BoundedVec, + pub module_name: BoundedVec, #[codec(compact)] - major: u32, + pub major: u32, #[codec(compact)] - minor: u32, + pub minor: u32, #[codec(compact)] - patch: u32, + pub patch: u32, } impl TryInto for PalletInfo { From 4e0f01dbc7df219b5a55b3a5eddc8209687f8e33 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Rios Date: Thu, 18 Jul 2024 11:18:13 +0200 Subject: [PATCH 2/3] prdoc --- prdoc/pr_4976.prdoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 prdoc/pr_4976.prdoc diff --git a/prdoc/pr_4976.prdoc b/prdoc/pr_4976.prdoc new file mode 100644 index 000000000000..a9dc4cc153e1 --- /dev/null +++ b/prdoc/pr_4976.prdoc @@ -0,0 +1,15 @@ +# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 +# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json + +title: Add pub to xcm::v4::PalletInfo + +doc: + - audience: Runtime Dev + description: | + Forgot to make v4 PalletInfo fields public. Without them we cannot make use of the struct. + +crates: + - name: staging-xcm + bump: patch + + From d43cf396a204064e9a5e0876b539b4dce7c77f0f Mon Sep 17 00:00:00 2001 From: Adrian Catangiu Date: Thu, 18 Jul 2024 19:34:08 +0300 Subject: [PATCH 3/3] Update prdoc/pr_4976.prdoc Co-authored-by: Oliver Tale-Yazdi --- prdoc/pr_4976.prdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prdoc/pr_4976.prdoc b/prdoc/pr_4976.prdoc index a9dc4cc153e1..72b7b92bc47f 100644 --- a/prdoc/pr_4976.prdoc +++ b/prdoc/pr_4976.prdoc @@ -11,5 +11,5 @@ doc: crates: - name: staging-xcm bump: patch - + validate: false