diff --git a/pallets/gear/src/lib.rs b/pallets/gear/src/lib.rs index d3124f6c9a4..9a88956876e 100644 --- a/pallets/gear/src/lib.rs +++ b/pallets/gear/src/lib.rs @@ -534,7 +534,7 @@ pub mod pallet { pub fn set_block_number(bn: BlockNumberFor) { use sp_runtime::SaturatedConversion; - >::put(bn.saturated_into::>()); + >::put(bn); } /// Upload program to the chain without stack limit injection and diff --git a/pallets/payment/src/mock.rs b/pallets/payment/src/mock.rs index fb189557265..0fd98043920 100644 --- a/pallets/payment/src/mock.rs +++ b/pallets/payment/src/mock.rs @@ -42,7 +42,7 @@ use sp_std::{ type Block = frame_system::mocking::MockBlock; type AccountId = u64; -type BlockNumber = u32; +type BlockNumber = u64; type Balance = u128; pub const ALICE: AccountId = 1;