From 7ae842e74e72faca84b6945fba9c6d968ee1873a Mon Sep 17 00:00:00 2001 From: enrique Date: Thu, 5 Oct 2023 09:44:57 +0200 Subject: [PATCH] fix: nft1155 test --- integration/external/Services_NFT1155.e2e.test.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/integration/external/Services_NFT1155.e2e.test.ts b/integration/external/Services_NFT1155.e2e.test.ts index 0a162110b..d73bcb35f 100644 --- a/integration/external/Services_NFT1155.e2e.test.ts +++ b/integration/external/Services_NFT1155.e2e.test.ts @@ -8,6 +8,7 @@ import { AssetPrice, NFTAttributes, ResourceAuthentication, + NeverminedNFT1155Type, } from '../../src' import { EscrowPaymentCondition, @@ -498,7 +499,10 @@ describe('Gate-keeping of Web Services using NFT ERC-1155 End-to-End', () => { ] it('should be able to retrieve the subscriptionDDO by contractAddress', async () => { - const result = await nevermined.search.bySubscriptionContractAddress(subscriptionNFT.address) + const result = await nevermined.search.bySubscriptionContractAddress( + subscriptionNFT.address, + NeverminedNFT1155Type.nft1155Credit, + ) assert.equal(result.totalResults.value, 1) }) @@ -511,7 +515,11 @@ describe('Gate-keeping of Web Services using NFT ERC-1155 End-to-End', () => { }) it('should be able to retrieve subscriptions purchased', async () => { - const result = await nevermined.search.subscriptionsPurchased(subscriber, 1155) + const result = await nevermined.search.subscriptionsPurchased( + subscriber, + NeverminedNFT1155Type.nft1155Credit, + 1155, + ) assert.isAbove(result.totalResults.value, 1) const dids = result.results.map((ddo) => ddo.id)