--- a/Cargo.lock +++ b/Cargo.lock @@ -5850,34 +5850,34 @@ [[package]] name = "pallet-scheduler" version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.7#9c572625f6557dfdb19f47474369a0327d51dfbc" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", "parity-scale-codec 2.1.3", - "serde", - "sp-core", "sp-io", "sp-runtime", "sp-std", - "substrate-test-utils", - "up-sponsorship", ] [[package]] name = "pallet-scheduler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.7#9c572625f6557dfdb19f47474369a0327d51dfbc" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", "parity-scale-codec 2.1.3", + "serde", + "sp-core", "sp-io", "sp-runtime", "sp-std", + "substrate-test-utils", + "up-sponsorship", ] [[package]] --- a/pallets/inflation/src/tests.rs +++ b/pallets/inflation/src/tests.rs @@ -104,13 +104,16 @@ let _ = >::deposit_creating(&1234, initial_issuance); assert_eq!(Balances::free_balance(1234), initial_issuance); - // BlockInflation should be set after 1st block and + // BlockInflation should be set after 1st block and // first inflation deposit should be equal to BlockInflation Inflation::on_initialize(1); // SBP M2 review: Verify expected block inflation for year 1 assert_eq!(Inflation::block_inflation(), 1901); - assert_eq!(Balances::free_balance(1234) - initial_issuance, Inflation::block_inflation()); + assert_eq!( + Balances::free_balance(1234) - initial_issuance, + Inflation::block_inflation() + ); }); } @@ -192,7 +195,6 @@ // Assert that next year inflation is less than previous year inflation assert!(block_inflation_year_before > block_inflation_year_after); } - }); }