difftreelog
Merge pull request #136 from usetech-llc/feature/NFTPAR-388
in: master
Update getCreateCollectionResult()
2 files changed
pallets/nft/src/lib.rsdiffbeforeafterboth621 /// * mode: [CollectionMode] converted into u8.621 /// * mode: [CollectionMode] converted into u8.622 /// 622 /// 623 /// * account_id: Collection owner.623 /// * account_id: Collection owner.624 Created(CollectionId, u8, AccountId),624 CollectionCreated(CollectionId, u8, AccountId),625625626 /// New item was created.626 /// New item was created.627 /// 627 /// 774 <CollectionById<T>>::insert(next_id, new_collection);774 <CollectionById<T>>::insert(next_id, new_collection);775775776 // call event776 // call event777 Self::deposit_event(RawEvent::Created(next_id, mode.into(), who.clone()));777 Self::deposit_event(RawEvent::CollectionCreated(next_id, mode.into(), who.clone()));778778779 Ok(())779 Ok(())780 }780 }tests/src/util/helpers.tsdiffbeforeafterboth--- 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());
}
});