mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 19:11:04 +00:00
Replace const parameters types (#1691)
* Replace const parameters * fmt * missed out Maxlocks
This commit is contained in:
committed by
Bastian Köcher
parent
9cea69349f
commit
3a8cb23103
@@ -24,7 +24,7 @@ use crate::{
|
||||
use bp_beefy::{BeefyValidatorSignatureOf, ChainWithBeefy, Commitment, MmrDataOrHash};
|
||||
use bp_runtime::{BasicOperatingMode, Chain};
|
||||
use codec::Encode;
|
||||
use frame_support::{construct_runtime, parameter_types, weights::Weight};
|
||||
use frame_support::{construct_runtime, parameter_types, traits::ConstU64, weights::Weight};
|
||||
use sp_core::{sr25519::Signature, Pair};
|
||||
use sp_runtime::{
|
||||
testing::{Header, H256},
|
||||
@@ -72,7 +72,6 @@ construct_runtime! {
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
pub const BlockHashCount: u64 = 250;
|
||||
pub const MaximumBlockWeight: Weight = Weight::from_ref_time(1024);
|
||||
pub const MaximumBlockLength: u32 = 2 * 1024;
|
||||
pub const AvailableBlockRatio: Perbill = Perbill::one();
|
||||
@@ -89,7 +88,7 @@ impl frame_system::Config for TestRuntime {
|
||||
type Lookup = IdentityLookup<Self::AccountId>;
|
||||
type Header = Header;
|
||||
type RuntimeEvent = ();
|
||||
type BlockHashCount = BlockHashCount;
|
||||
type BlockHashCount = ConstU64<250>;
|
||||
type Version = ();
|
||||
type PalletInfo = PalletInfo;
|
||||
type AccountData = ();
|
||||
|
||||
Reference in New Issue
Block a user