diff --git a/pages/collections/myCollections.tsx b/pages/collections/myCollections.tsx index b9b4994..3054902 100644 --- a/pages/collections/myCollections.tsx +++ b/pages/collections/myCollections.tsx @@ -60,6 +60,12 @@ const CollectionList: NextPage = () => { if (minterConfig?.whitelist) collection.whitelist = minterConfig.whitelist setMyStandardCollections((prevState) => [...prevState, collection]) } else if (contractType?.includes('open-edition')) { + const minterConfig = await (await wallet.getCosmWasmClient()) + .queryContractSmart(collection.minter, { config: {} }) + .catch(() => { + console.log('Unable to retrieve minter config') + }) + if (minterConfig?.whitelist) collection.whitelist = minterConfig.whitelist setMyOpenEditionCollections((prevState) => [...prevState, collection]) } }) @@ -429,6 +435,31 @@ const CollectionList: NextPage = () => { + +
+ Whitelist: + + + + + +
+
@@ -445,6 +476,14 @@ const CollectionList: NextPage = () => { > + + + + +