Skip to content

Commit

Permalink
Companion for paritytech/substrate#11631 (#5671)
Browse files Browse the repository at this point in the history
* Companion for paritytech/substrate#11631

* Fixes

* Update sp-runtime

* Fixes

* update lockfile for {"substrate"}

* remove unused

Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <[email protected]>
  • Loading branch information
KiChjang and shawntabrizi authored Jun 16, 2022
1 parent f69f339 commit 906b3df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion polkadot/runtime/parachains/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"

[dependencies]
bitvec = { version = "1.0.0", default-features = false, features = ["alloc"] }
parity-scale-codec = { version = "3.1.2", default-features = false, features = ["derive"] }
parity-scale-codec = { version = "3.1.2", default-features = false, features = ["derive", "max-encoded-len"] }
log = { version = "0.4.17", default-features = false }
rustc-hex = { version = "2.1.0", default-features = false }
scale-info = { version = "2.1.2", default-features = false, features = ["derive"] }
Expand Down
11 changes: 10 additions & 1 deletion polkadot/runtime/parachains/src/origin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ pub mod pallet {

/// Origin for the parachains.
#[pallet::origin]
#[derive(PartialEq, Eq, Clone, Encode, Decode, sp_core::RuntimeDebug, scale_info::TypeInfo)]
#[derive(
PartialEq,
Eq,
Clone,
Encode,
Decode,
sp_core::RuntimeDebug,
scale_info::TypeInfo,
MaxEncodedLen,
)]
pub enum Origin {
/// It comes from a parachain.
Parachain(ParaId),
Expand Down
3 changes: 2 additions & 1 deletion polkadot/runtime/westend/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ use xcm_builder::{
parameter_types! {
pub const WndLocation: MultiLocation = Here.into();
pub const Ancestry: MultiLocation = Here.into();
pub WestendNetwork: NetworkId = NetworkId::Named(b"Westend".to_vec());
pub WestendNetwork: NetworkId =
NetworkId::Named(b"Westend".to_vec().try_into().expect("shorter than length limit; qed"));
pub CheckAccount: AccountId = XcmPallet::check_account();
}

Expand Down

0 comments on commit 906b3df

Please sign in to comment.