From 7b0bdf5b50376d533f4673b4bbd21b8417e0752b Mon Sep 17 00:00:00 2001 From: usetech-llc Date: Tue, 23 Mar 2021 11:12:00 +0000 Subject: [PATCH] Merge pull request #136 from usetech-llc/feature/NFTPAR-388 Update getCreateCollectionResult() --- --- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -621,7 +621,7 @@ /// * mode: [CollectionMode] converted into u8. /// /// * account_id: Collection owner. - Created(CollectionId, u8, AccountId), + CollectionCreated(CollectionId, u8, AccountId), /// New item was created. /// @@ -774,7 +774,7 @@ >::insert(next_id, new_collection); // call event - Self::deposit_event(RawEvent::Created(next_id, mode.into(), who.clone())); + Self::deposit_event(RawEvent::CollectionCreated(next_id, mode.into(), who.clone())); Ok(()) } --- a/tests/src/util/helpers.ts +++ b/tests/src/util/helpers.ts @@ -118,7 +118,7 @@ // console.log(` ${phase}: ${section}.${method}:: ${data}`); if (method == 'ExtrinsicSuccess') { success = true; - } else if ((section == 'nft') && (method == 'Created')) { + } else if ((section == 'nft') && (method == 'CollectionCreated')) { collectionId = parseInt(data[0].toString()); } }); -- gitstuff