mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Compat fix for substrate#624
This commit is contained in:
@@ -61,16 +61,17 @@ decl_module! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
decl_storage! {
|
decl_storage! {
|
||||||
trait Store for Module<T: Trait>;
|
trait Store for Module<T: Trait> as Parachains {
|
||||||
// Vector of all parachain IDs.
|
// Vector of all parachain IDs.
|
||||||
pub Parachains get(active_parachains): b"para:chains" => default Vec<Id>;
|
pub Parachains get(active_parachains): default Vec<Id>;
|
||||||
// The parachains registered at present.
|
// The parachains registered at present.
|
||||||
pub Code get(parachain_code): b"para:code" => map [ Id => Vec<u8> ];
|
pub Code get(parachain_code): map [ Id => Vec<u8> ];
|
||||||
// The heads of the parachains registered at present. these are kept sorted.
|
// The heads of the parachains registered at present. these are kept sorted.
|
||||||
pub Heads get(parachain_head): b"para:head" => map [ Id => Vec<u8> ];
|
pub Heads get(parachain_head): map [ Id => Vec<u8> ];
|
||||||
|
|
||||||
// Did the parachain heads get updated in this block?
|
// Did the parachain heads get updated in this block?
|
||||||
DidUpdate: b"para:did" => default bool;
|
DidUpdate: default bool;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Trait> Module<T> {
|
impl<T: Trait> Module<T> {
|
||||||
|
|||||||
Reference in New Issue
Block a user