@@ -637,8 +637,20 @@ impl<T> CustomDispatchFee<T> for (Weight, DispatchClass, DispatchFeeModifier) {
637
637
}
638
638
}
639
639
640
+ impl < T > CustomDispatchFee < T > for ( Weight , DispatchClass , Pays ) {
641
+ fn custom_dispatch_fee ( & self , _: T ) -> DispatchFeeModifier {
642
+ DispatchFeeModifier :: default ( )
643
+ }
644
+ }
645
+
640
646
// TODO: Eventually remove these
641
647
648
+ impl < T > CustomDispatchFee < T > for u64 {
649
+ fn custom_dispatch_fee ( & self , _: T ) -> DispatchFeeModifier {
650
+ DispatchFeeModifier :: default ( )
651
+ }
652
+ }
653
+
642
654
impl < T > ClassifyDispatch < T > for u64 {
643
655
fn classify_dispatch ( & self , _: T ) -> DispatchClass {
644
656
DispatchClass :: Normal
@@ -675,6 +687,12 @@ impl<T> PaysFee<T> for (u64, DispatchClass, Pays) {
675
687
}
676
688
}
677
689
690
+ impl < T > CustomDispatchFee < T > for ( u64 , DispatchClass , Pays ) {
691
+ fn custom_dispatch_fee ( & self , _: T ) -> DispatchFeeModifier {
692
+ DispatchFeeModifier :: default ( )
693
+ }
694
+ }
695
+
678
696
impl < T > WeighData < T > for ( u64 , DispatchClass ) {
679
697
fn weigh_data ( & self , args : T ) -> Weight {
680
698
return self . 0 . weigh_data ( args)
@@ -693,6 +711,12 @@ impl<T> PaysFee<T> for (u64, DispatchClass) {
693
711
}
694
712
}
695
713
714
+ impl < T > CustomDispatchFee < T > for ( u64 , DispatchClass ) {
715
+ fn custom_dispatch_fee ( & self , _: T ) -> DispatchFeeModifier {
716
+ DispatchFeeModifier :: default ( )
717
+ }
718
+ }
719
+
696
720
impl < T > WeighData < T > for ( u64 , Pays ) {
697
721
fn weigh_data ( & self , args : T ) -> Weight {
698
722
return self . 0 . weigh_data ( args)
@@ -711,6 +735,12 @@ impl<T> PaysFee<T> for (u64, Pays) {
711
735
}
712
736
}
713
737
738
+ impl < T > CustomDispatchFee < T > for ( u64 , Pays ) {
739
+ fn custom_dispatch_fee ( & self , _: T ) -> DispatchFeeModifier {
740
+ DispatchFeeModifier :: default ( )
741
+ }
742
+ }
743
+
714
744
// END TODO
715
745
716
746
#[ cfg( test) ]
0 commit comments