From 79932f19751899f1fb873b08fe3aa4cf4397225b Mon Sep 17 00:00:00 2001 From: Gav Date: Wed, 29 Aug 2018 12:30:04 +0200 Subject: [PATCH] Compat fix for substrate#624 --- polkadot/runtime/src/parachains.rs | 19 ++++++++++--------- polkadot/runtime/src/utils.rs | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/polkadot/runtime/src/parachains.rs b/polkadot/runtime/src/parachains.rs index 98cbebe364..efd7a97285 100644 --- a/polkadot/runtime/src/parachains.rs +++ b/polkadot/runtime/src/parachains.rs @@ -61,16 +61,17 @@ decl_module! { } decl_storage! { - trait Store for Module; - // Vector of all parachain IDs. - pub Parachains get(active_parachains): b"para:chains" => default Vec; - // The parachains registered at present. - pub Code get(parachain_code): b"para:code" => map [ Id => Vec ]; - // The heads of the parachains registered at present. these are kept sorted. - pub Heads get(parachain_head): b"para:head" => map [ Id => Vec ]; + trait Store for Module as Parachains { + // Vector of all parachain IDs. + pub Parachains get(active_parachains): default Vec; + // The parachains registered at present. + pub Code get(parachain_code): map [ Id => Vec ]; + // The heads of the parachains registered at present. these are kept sorted. + pub Heads get(parachain_head): map [ Id => Vec ]; - // Did the parachain heads get updated in this block? - DidUpdate: b"para:did" => default bool; + // Did the parachain heads get updated in this block? + DidUpdate: default bool; + } } impl Module { diff --git a/polkadot/runtime/src/utils.rs b/polkadot/runtime/src/utils.rs index acef060925..efeb17e883 100644 --- a/polkadot/runtime/src/utils.rs +++ b/polkadot/runtime/src/utils.rs @@ -25,7 +25,7 @@ use session::Call as SessionCall; /// Produces the list of inherent extrinsics. pub fn inherent_extrinsics(data: ::primitives::InherentData) -> Vec { - let make_inherent = |function| UncheckedExtrinsic::new( + let make_inherent = |function| UncheckedExtrinsic::new( Extrinsic { signed: Default::default(), function,