@@ -571,7 +571,6 @@ mod tests {
571
571
traits:: { BlakeTwo256 , IdentityLookup } ,
572
572
Perbill ,
573
573
} ;
574
- use std:: cell:: RefCell ;
575
574
use smallvec:: smallvec;
576
575
577
576
const CALL : & <Runtime as frame_system:: Trait >:: Call =
@@ -599,20 +598,14 @@ mod tests {
599
598
pub enum Origin for Runtime { }
600
599
}
601
600
602
- thread_local ! {
603
- static EXTRINSIC_BASE_WEIGHT : RefCell <u64 > = RefCell :: new( 0 ) ;
604
- }
605
-
606
- pub struct ExtrinsicBaseWeight ;
607
- impl Get < u64 > for ExtrinsicBaseWeight {
608
- fn get ( ) -> u64 { EXTRINSIC_BASE_WEIGHT . with ( |v| * v. borrow ( ) ) }
609
- }
610
-
611
601
parameter_types ! {
612
602
pub const BlockHashCount : u64 = 250 ;
613
603
pub const MaximumBlockWeight : Weight = 1024 ;
614
604
pub const MaximumBlockLength : u32 = 2 * 1024 ;
615
605
pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
606
+ pub static ExtrinsicBaseWeight : u64 = 0 ;
607
+ pub static TransactionByteFee : u64 = 1 ;
608
+ pub static WeightToFee : u64 = 1 ;
616
609
}
617
610
618
611
impl frame_system:: Trait for Runtime {
@@ -656,17 +649,7 @@ mod tests {
656
649
type MaxLocks = ( ) ;
657
650
type WeightInfo = ( ) ;
658
651
}
659
- thread_local ! {
660
- static TRANSACTION_BYTE_FEE : RefCell <u64 > = RefCell :: new( 1 ) ;
661
- static WEIGHT_TO_FEE : RefCell <u64 > = RefCell :: new( 1 ) ;
662
- }
663
-
664
- pub struct TransactionByteFee ;
665
- impl Get < u64 > for TransactionByteFee {
666
- fn get ( ) -> u64 { TRANSACTION_BYTE_FEE . with ( |v| * v. borrow ( ) ) }
667
- }
668
652
669
- pub struct WeightToFee ;
670
653
impl WeightToFeePolynomial for WeightToFee {
671
654
type Balance = u64 ;
672
655
0 commit comments