Skip to content

Commit 37bb02e

Browse files
Make PalletInfo fields public (#2231)
PalletInfo fields were private, preventing a user from actually using the QueryPallet instruction in a meaningful way since they couldn't read the received data.
1 parent 69494ea commit 37bb02e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

polkadot/xcm/src/v3/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,15 @@ parameter_types! {
243243
#[scale_info(replace_segment("staging_xcm", "xcm"))]
244244
pub struct PalletInfo {
245245
#[codec(compact)]
246-
index: u32,
247-
name: BoundedVec<u8, MaxPalletNameLen>,
248-
module_name: BoundedVec<u8, MaxPalletNameLen>,
246+
pub index: u32,
247+
pub name: BoundedVec<u8, MaxPalletNameLen>,
248+
pub module_name: BoundedVec<u8, MaxPalletNameLen>,
249249
#[codec(compact)]
250-
major: u32,
250+
pub major: u32,
251251
#[codec(compact)]
252-
minor: u32,
252+
pub minor: u32,
253253
#[codec(compact)]
254-
patch: u32,
254+
pub patch: u32,
255255
}
256256

257257
impl PalletInfo {

0 commit comments

Comments
 (0)