relax input conditions of fixed::checked_from_integer (#11159)

* relax input conditions of fixed::checked_from_integer

* Fix build
This commit is contained in:
Kian Paimani
2022-04-07 09:46:51 +02:00
committed by GitHub
parent 1df943cd6d
commit b438b47f1a
2 changed files with 10 additions and 8 deletions
@@ -348,7 +348,7 @@ pub mod pallet {
// loss.
assert!(
<Multiplier as sp_runtime::traits::Bounded>::max_value() >=
Multiplier::checked_from_integer(
Multiplier::checked_from_integer::<u128>(
T::BlockWeights::get().max_block.try_into().unwrap()
)
.unwrap(),