mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 15:41:02 +00:00
removed pallet::getter usage from cumulus pallets (#3471)
Part of #3326 @ggwpez @kianenigma @shawntabrizi polkadot address: 12poSUQPtcF1HUPQGY3zZu2P8emuW9YnsPduA4XG3oCEfJVp --------- Signed-off-by: Matteo Muraca <mmuraca247@gmail.com>
This commit is contained in:
@@ -54,8 +54,8 @@ where
|
||||
let velocity = V.max(1);
|
||||
let relay_chain_slot = state_proof.read_slot().expect("failed to read relay chain slot");
|
||||
|
||||
let (slot, authored) = pallet::Pallet::<T>::slot_info()
|
||||
.expect("slot info is inserted on block initialization");
|
||||
let (slot, authored) =
|
||||
pallet::SlotInfo::<T>::get().expect("slot info is inserted on block initialization");
|
||||
|
||||
// Convert relay chain timestamp.
|
||||
let relay_chain_timestamp =
|
||||
@@ -100,7 +100,7 @@ impl<
|
||||
/// is more recent than the included block itself.
|
||||
pub fn can_build_upon(included_hash: T::Hash, new_slot: Slot) -> bool {
|
||||
let velocity = V.max(1);
|
||||
let (last_slot, authored_so_far) = match pallet::Pallet::<T>::slot_info() {
|
||||
let (last_slot, authored_so_far) = match pallet::SlotInfo::<T>::get() {
|
||||
None => return true,
|
||||
Some(x) => x,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user