From 758899b031b22251f5828a944f0a9540a454006f Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Wed, 25 Oct 2023 11:09:25 +0300 Subject: [PATCH] Allow factory parameters to be fetched with no wallet connection --- pages/collections/create.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index de73564..a5c1b01 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -1130,7 +1130,6 @@ const CollectionCreationPage: NextPage = () => { } const fetchInitialFactoryParameters = async () => { - if (!wallet.isWalletConnected) return const client = await wallet.getCosmWasmClient() if (BASE_FACTORY_ADDRESS) { const baseFactoryParameters = await client @@ -1210,7 +1209,6 @@ const CollectionCreationPage: NextPage = () => { } const fetchOpenEditionFactoryParameters = useCallback(async () => { - if (!wallet.isWalletConnected) return const client = await wallet.getCosmWasmClient() const factoryForSelectedDenom = openEditionMinterList.find( (minter) => @@ -1262,7 +1260,6 @@ const CollectionCreationPage: NextPage = () => { ]) const fetchVendingFactoryParameters = useCallback(async () => { - if (!wallet.isWalletConnected) return const client = await wallet.getCosmWasmClient() const vendingFactoryForSelectedDenom = vendingMinterList .concat(flexibleVendingMinterList)