From 3f244cfcd447e446e28ba889f772b51182665c76 Mon Sep 17 00:00:00 2001 From: Frank Bell Date: Thu, 7 Mar 2024 21:05:24 +0000 Subject: [PATCH] fix: add missing derives --- pop-api/src/v0/nfts.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pop-api/src/v0/nfts.rs b/pop-api/src/v0/nfts.rs index ae0a3a70..67055dad 100644 --- a/pop-api/src/v0/nfts.rs +++ b/pop-api/src/v0/nfts.rs @@ -1,7 +1,8 @@ use super::RuntimeCall; use crate::{PopApiError::UnknownStatusCode, *}; use ink::prelude::vec::Vec; -use primitives::{ApprovalsLimit, BoundedBTreeMap, CollectionId, ItemId, KeyLimit, MultiAddress}; +use primitives::{ApprovalsLimit, BoundedBTreeMap, KeyLimit, MultiAddress}; +pub use primitives::{CollectionId, ItemId}; use scale::Encode; pub use types::*; @@ -675,7 +676,7 @@ mod types { } /// Information about a collection. - #[derive(Decode)] + #[derive(Decode, Debug, Encode, Eq, PartialEq)] pub struct CollectionDetails { /// Collection's owner. pub owner: AccountId, @@ -715,7 +716,7 @@ mod types { } /// Information concerning the ownership of a single unique item. - #[derive(Decode)] + #[derive(Decode, Debug, Encode, Eq, PartialEq)] pub struct ItemDetails { /// The owner of this item. pub owner: AccountId,