mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-05 18:31:07 +00:00
Migrate pallet-babe to pallet attribute macro. (#8310)
* Migrate pallet-babe to pallet attribute macro. * Remove unnecessary bound in pallet storage. Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
1 parent
da6bf01ad9
commit
c7d32ba9a6
6 files changed
+313
-257
No files matched your search
@@ -27,7 +27,7 @@ use sp_runtime::{
|
||||
};
|
||||
use frame_system::InitKind;
|
||||
use frame_support::{
|
||||
parameter_types, StorageValue,
|
||||
parameter_types,
|
||||
traits::{KeyOwnerProofSystem, OnInitialize},
|
||||
weights::Weight,
|
||||
};
|
||||
@@ -451,7 +451,7 @@ pub fn generate_equivocation_proof(
|
||||
use sp_consensus_babe::digests::CompatibleDigestItem;
|
||||
|
||||
let current_block = System::block_number();
|
||||
let current_slot = CurrentSlot::get();
|
||||
let current_slot = CurrentSlot::<Test>::get();
|
||||
|
||||
let make_header = || {
|
||||
let parent_hash = System::parent_hash();
|
||||
|
||||
Reference in new issue
Block a user