Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.
Closed
Prev Previous commit
Next Next commit
CollectionId is Unsigned
  • Loading branch information
asiniscalchi committed Jul 29, 2023
commit 021de5ac922f942d7eae092572da1f03555c21a7
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pallets/living-assets-ownership/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ scale-info = { workspace = true, features = ["derive"] }
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
sp-arithmetic = { workspace = true }

[dev-dependencies]
serde = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion pallets/living-assets-ownership/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ 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},
Expand All @@ -32,7 +33,7 @@ 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;
type CollectionId: Member + Parameter + MaxEncodedLen + Copy + Default + CheckedAdd + One + Unsigned;
}

/// Mapping from collection id to owner
Expand Down