From 6bb23161faf36dc6569a9b0cf5aad9f910f0deab Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 12 Sep 2022 07:49:25 +0000 Subject: [PATCH] fix: cargo fmt --- --- a/runtime/common/scheduler.rs +++ b/runtime/common/scheduler.rs @@ -31,7 +31,8 @@ use pallet_unique_scheduler::DispatchCall; use pallet_transaction_payment::ChargeTransactionPayment; -type SponsorshipChargeTransactionPayment = pallet_charge_transaction::ChargeTransactionPayment; +type SponsorshipChargeTransactionPayment = + pallet_charge_transaction::ChargeTransactionPayment; /// The SignedExtension to the basic transaction logic. pub type SignedExtraScheduler = ( @@ -40,7 +41,7 @@ frame_system::CheckEra, frame_system::CheckNonce, frame_system::CheckWeight, - ChargeTransactionPayment::, + ChargeTransactionPayment, ); fn get_signed_extras(from: ::AccountId) -> SignedExtraScheduler { @@ -105,8 +106,9 @@ count: u32, ) -> Result<(), DispatchError> { let dispatch_info = call.get_dispatch_info(); - let weight: Balance = SponsorshipChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0) - .saturating_mul(count.into()); + let weight: Balance = + SponsorshipChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0) + .saturating_mul(count.into()); >::reserve_named( &id, @@ -121,7 +123,8 @@ call: ::Call, ) -> Result { let dispatch_info = call.get_dispatch_info(); - let weight: Balance = SponsorshipChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0); + let weight: Balance = + SponsorshipChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0); Ok( >::unreserve_named( &id, -- gitstuff