Skip to content
Snippets Groups Projects

Fix #232

Merged Benjamin Gallois requested to merge fix-232 into master
1 file
+ 3
5
Compare changes
  • Side-by-side
  • Inline
@@ -24,10 +24,7 @@ pub use frame_support::weights::{Weight, WeightToFee};
@@ -24,10 +24,7 @@ pub use frame_support::weights::{Weight, WeightToFee};
use pallet_transaction_payment::{Multiplier, MultiplierUpdate};
use pallet_transaction_payment::{Multiplier, MultiplierUpdate};
use sp_arithmetic::traits::{BaseArithmetic, Unsigned};
use sp_arithmetic::traits::{BaseArithmetic, Unsigned};
use sp_core::Get;
use sp_core::Get;
use sp_runtime::{
use sp_runtime::{traits::Convert, Perquintill};
traits::{Convert, One},
Perquintill,
};
#[cfg(not(feature = "constant-fees"))]
#[cfg(not(feature = "constant-fees"))]
use {
use {
crate::weights::extrinsic_weights::ExtrinsicBaseWeight,
crate::weights::extrinsic_weights::ExtrinsicBaseWeight,
@@ -37,6 +34,7 @@ use {
@@ -37,6 +34,7 @@ use {
},
},
smallvec::smallvec,
smallvec::smallvec,
sp_arithmetic::MultiplyRational,
sp_arithmetic::MultiplyRational,
 
sp_runtime::traits::One,
sp_runtime::Perbill,
sp_runtime::Perbill,
sp_runtime::SaturatedConversion,
sp_runtime::SaturatedConversion,
sp_runtime::Saturating,
sp_runtime::Saturating,
@@ -189,7 +187,7 @@ where
@@ -189,7 +187,7 @@ where
X: Get<Multiplier>,
X: Get<Multiplier>,
{
{
fn min() -> Multiplier {
fn min() -> Multiplier {
1.into()
0.into()
}
}
fn max() -> Multiplier {
fn max() -> Multiplier {
Loading