From 3e526984b9711033510396bc7aeba1c7ca0a9baf Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Fri, 07 May 2021 13:16:31 +0000 Subject: [PATCH] fix: missing error handler for create_item call --- --- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -1148,7 +1148,7 @@ let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?); let collection = Self::get_collection(collection_id)?; - Self::create_item_internal(&sender, &collection, &owner, data); + Self::create_item_internal(&sender, &collection, &owner, data)?; Self::submit_logs(collection)?; Ok(()) @@ -2227,7 +2227,7 @@ >::insert(collection.id, collection.into_inner()); } - fn submit_logs(collection: CollectionHandle) -> DispatchResult { + pub fn submit_logs(collection: CollectionHandle) -> DispatchResult { if collection.logs.is_empty() { return Ok(()) } -- gitstuff