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 authored and GitHub committed 2022-04-07 07:46:51 +00:00
1 parent 1df943cd6d
commit b438b47f1a
2 files changed
+10 -8

No files matched your search

@@ -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(),