Bump Substrate (#939)

* Bump Substrate to `0856e072`

* Fix compilation errors
This commit is contained in:
Hernando Castano
2021-04-27 16:47:37 -04:00
committed by Bastian Köcher
parent 4321d20d2f
commit 982a50df66
3 changed files with 6 additions and 2 deletions
@@ -31,7 +31,7 @@ use frame_support::{
weights::{DispatchClass, Weight}, weights::{DispatchClass, Weight},
RuntimeDebug, RuntimeDebug,
}; };
use sp_runtime::{FixedPointNumber, FixedU128}; use sp_runtime::{traits::Zero, FixedPointNumber, FixedU128};
use sp_std::{convert::TryFrom, ops::RangeInclusive}; use sp_std::{convert::TryFrom, ops::RangeInclusive};
/// Initial value of `RialtoToMillauConversionRate` parameter. /// Initial value of `RialtoToMillauConversionRate` parameter.
@@ -31,7 +31,7 @@ use frame_support::{
weights::{DispatchClass, Weight}, weights::{DispatchClass, Weight},
RuntimeDebug, RuntimeDebug,
}; };
use sp_runtime::{FixedPointNumber, FixedU128}; use sp_runtime::{traits::Zero, FixedPointNumber, FixedU128};
use sp_std::{convert::TryFrom, ops::RangeInclusive}; use sp_std::{convert::TryFrom, ops::RangeInclusive};
/// Initial value of `MillauToRialtoConversionRate` parameter. /// Initial value of `MillauToRialtoConversionRate` parameter.
@@ -1407,6 +1407,8 @@ mod tests {
#[test] #[test]
fn transaction_payment_works_with_zero_multiplier() { fn transaction_payment_works_with_zero_multiplier() {
use sp_runtime::traits::Zero;
assert_eq!( assert_eq!(
transaction_payment( transaction_payment(
100, 100,
@@ -1424,6 +1426,8 @@ mod tests {
#[test] #[test]
fn transaction_payment_works_with_non_zero_multiplier() { fn transaction_payment_works_with_non_zero_multiplier() {
use sp_runtime::traits::One;
assert_eq!( assert_eq!(
transaction_payment( transaction_payment(
100, 100,