Skip to content

Commit

Permalink
chore: Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
serg-temchenko committed Jun 28, 2024
1 parent 54ae287 commit 8547901
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pallets/payment-channel/src/benchmarking.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//! Benchmarking setup for pallet-payment-channel
#![cfg(feature = "runtime-benchmarks")]
use super::*;
use frame_benchmarking::v2::*;
use frame_system::RawOrigin;

use super::*;
#[allow(unused)]
use crate::Pallet as Template;
use frame_benchmarking::v2::*;
use frame_system::RawOrigin;

#[benchmarks]
mod benchmarks {
Expand Down
9 changes: 6 additions & 3 deletions pallets/payment-channel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ mod benchmarking;
// TODO(@Serhii, no-ref, 20/06/2024): when ready for prod - replace with #[frame_support::pallet]
#[frame_support::pallet(dev_mode)]
pub mod pallet {
use codec::{Decode, Encode};
use core::fmt::Debug;

use codec::{Decode, Encode};
use frame_support::{
pallet_prelude::*,
traits::{Currency, ExistenceRequirement, ReservableCurrency},
};
use frame_system::pallet_prelude::*;
use scale_info::TypeInfo;
use sp_runtime::traits::{Hash, SaturatedConversion, Verify, Zero};
use sp_runtime::{AccountId32, MultiSignature};
use sp_runtime::{
traits::{Hash, SaturatedConversion, Verify, Zero},
AccountId32, MultiSignature,
};

type BalanceOf<T> =
<<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance;
Expand Down

0 comments on commit 8547901

Please sign in to comment.