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

Commit 84466fe

Browse files
authored
export xcm_pallet config (#4116)
* export xcm_pallet config Signed-off-by: Cheng JIANG <[email protected]> * run format Signed-off-by: Cheng JIANG <[email protected]> * fix typo Signed-off-by: Cheng JIANG <[email protected]> * add generic parameter to support different runtimes * Revert "add generic parameter to support different runtimes" This reverts commit 4405ea9.
1 parent 8785cf6 commit 84466fe

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

node/service/src/chain_spec.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ fn westend_staging_testnet_config_genesis(wasm_binary: &[u8]) -> westend::Genesi
558558
registrar: westend_runtime::RegistrarConfig {
559559
next_free_para_id: polkadot_primitives::v1::LOWEST_PUBLIC_ID,
560560
},
561+
xcm_pallet: westend_runtime::XcmPalletConfig { safe_xcm_version: Some(2) },
561562
}
562563
}
563564

@@ -755,6 +756,7 @@ fn kusama_staging_testnet_config_genesis(wasm_binary: &[u8]) -> kusama::GenesisC
755756
},
756757
gilt: Default::default(),
757758
paras: Default::default(),
759+
xcm_pallet: kusama::XcmPalletConfig { safe_xcm_version: Some(2) },
758760
}
759761
}
760762

@@ -1054,6 +1056,7 @@ fn rococo_staging_testnet_config_genesis(wasm_binary: &[u8]) -> rococo_runtime::
10541056
registrar: rococo_runtime::RegistrarConfig {
10551057
next_free_para_id: polkadot_primitives::v1::LOWEST_PUBLIC_ID,
10561058
},
1059+
xcm_pallet: rococo_runtime::XcmPalletConfig { safe_xcm_version: Some(2) },
10571060
// bridge_rococo_grandpa: rococo_runtime::BridgeRococoGrandpaConfig {
10581061
// owner: Some(endowed_accounts[0].clone()),
10591062
// ..Default::default()
@@ -1411,6 +1414,7 @@ pub fn kusama_testnet_genesis(
14111414
},
14121415
gilt: Default::default(),
14131416
paras: Default::default(),
1417+
xcm_pallet: kusama::XcmPalletConfig { safe_xcm_version: Some(2) },
14141418
}
14151419
}
14161420

@@ -1492,6 +1496,7 @@ pub fn westend_testnet_genesis(
14921496
registrar: westend_runtime::RegistrarConfig {
14931497
next_free_para_id: polkadot_primitives::v1::LOWEST_PUBLIC_ID,
14941498
},
1499+
xcm_pallet: westend_runtime::XcmPalletConfig { safe_xcm_version: Some(2) },
14951500
}
14961501
}
14971502

@@ -1568,6 +1573,7 @@ pub fn rococo_testnet_genesis(
15681573
registrar: rococo_runtime::RegistrarConfig {
15691574
next_free_para_id: polkadot_primitives::v1::LOWEST_PUBLIC_ID,
15701575
},
1576+
xcm_pallet: rococo_runtime::XcmPalletConfig { safe_xcm_version: Some(2) },
15711577
// bridge_rococo_grandpa: rococo_runtime::BridgeRococoGrandpaConfig {
15721578
// owner: Some(root_key.clone()),
15731579
// ..Default::default()

runtime/kusama/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ construct_runtime! {
15211521
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>} = 73,
15221522

15231523
// Pallet for sending XCM.
1524-
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 99,
1524+
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config} = 99,
15251525
}
15261526
}
15271527

runtime/rococo/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ construct_runtime! {
255255
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>},
256256

257257
// Pallet for sending XCM.
258-
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 99,
258+
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config} = 99,
259259

260260
}
261261
}

runtime/westend/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ construct_runtime! {
11011101
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>} = 64,
11021102

11031103
// Pallet for sending XCM.
1104-
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 99,
1104+
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config} = 99,
11051105
}
11061106
}
11071107

0 commit comments

Comments
 (0)