From 7e914a269da2d1edbd214d916e44614edf47b3c0 Mon Sep 17 00:00:00 2001 From: j00lz Date: Fri, 14 Jul 2023 14:26:00 +0700 Subject: [PATCH 1/2] fixes example in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc81371..5f7acba 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ pub fun main(): {String: NFTCatalog.NFTCatalogMetadata} { let collections: {String: NFTCatalog.NFTCatalogMetadata} = {} for key in keys { - collections[key] = catalog[key] + collections[key] = NFTCatalog.getCatalogEntry(collectionIdentifier) } return collections @@ -219,7 +219,7 @@ pub fun main(): [String] { let catalogNames: [String] = [] for collectionIdentifier in catalogKeys { - catalogNames.append(catalog[collectionIdentifier]!.collectionDisplay.name) + catalogNames.append(NFTCatalog.getCatalogEntry(collectionIdentifier)!.collectionDisplay.name) } return catalogNames From aaea7c83779ba4a4db6fd9bca17c31a406cfe537 Mon Sep 17 00:00:00 2001 From: j00lz Date: Fri, 14 Jul 2023 14:27:40 +0700 Subject: [PATCH 2/2] fix readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f7acba..8e60f3e 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ pub fun main(): {String: NFTCatalog.NFTCatalogMetadata} { let collections: {String: NFTCatalog.NFTCatalogMetadata} = {} for key in keys { - collections[key] = NFTCatalog.getCatalogEntry(collectionIdentifier) + collections[key] = NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier) } return collections @@ -219,7 +219,7 @@ pub fun main(): [String] { let catalogNames: [String] = [] for collectionIdentifier in catalogKeys { - catalogNames.append(NFTCatalog.getCatalogEntry(collectionIdentifier)!.collectionDisplay.name) + catalogNames.append(NFTCatalog.getCatalogEntry(collectionIdentifier: collectionIdentifier)!.collectionDisplay.name) } return catalogNames