Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
asiniscalchi committed Jul 29, 2023
commit 5dd8c0e984a495a67b069049e2e987b8e3fcebfa
11 changes: 9 additions & 2 deletions pallets/living-assets-ownership/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ mod tests;

#[frame_support::pallet]
pub mod pallet {
use sp_arithmetic::traits::Unsigned;
use frame_support::{
pallet_prelude::{OptionQuery, ValueQuery, *},
sp_runtime::traits::{CheckedAdd, One},
};
use frame_system::pallet_prelude::*;
use sp_arithmetic::traits::Unsigned;

#[pallet::pallet]
pub struct Pallet<T>(_);
Expand All @@ -33,7 +33,14 @@ pub mod pallet {
/// Because this pallet emits events, it depends on the runtime's definition of an event.
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
/// Collection id type
type CollectionId: Member + Parameter + MaxEncodedLen + Copy + Default + CheckedAdd + One + Unsigned;
type CollectionId: Member
+ Parameter
+ MaxEncodedLen
+ Copy
+ Default
+ CheckedAdd
+ One
+ Unsigned;
}

/// Mapping from collection id to owner
Expand Down