diff --git a/src/core/collection.ts b/src/core/collection.ts index fcc3e82..a8466c2 100644 --- a/src/core/collection.ts +++ b/src/core/collection.ts @@ -63,8 +63,8 @@ class CollectionService extends NodeService { } if (mintedItems.length !== items.length) { - const nodeService = new NodeService(this.wallet, this.api); - await nodeService.revoke(collectionId, vaultId); + const service = new CollectionService(this.wallet, this.api); + await service.revoke(collectionId, vaultId); throw new InternalError("Something went wrong, please try again later or contact Akord support."); } @@ -77,8 +77,8 @@ class CollectionService extends NodeService { items: nfts } } catch (error) { - const nodeService = new NodeService(this.wallet, this.api); - await nodeService.revoke(collectionId, vaultId); + const service = new CollectionService(this.wallet, this.api); + await service.revoke(collectionId, vaultId); throw new InternalError("Something went wrong, please try again later or contact Akord support."); } }