From 758899b031b22251f5828a944f0a9540a454006f Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Wed, 25 Oct 2023 11:09:25 +0300 Subject: [PATCH 1/2] 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) From 187784261f985d1329db4e002163d2fbcefdcdc8 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Wed, 25 Oct 2023 11:11:46 +0300 Subject: [PATCH 2/2] Update mint price denom selection UI --- components/collections/creation/MintingDetails.tsx | 4 ++-- components/openEdition/MintingDetails.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/collections/creation/MintingDetails.tsx b/components/collections/creation/MintingDetails.tsx index 7a95a5d..770bfd6 100644 --- a/components/collections/creation/MintingDetails.tsx +++ b/components/collections/creation/MintingDetails.tsx @@ -138,10 +138,10 @@ export const MintingDetails = ({ isRequired value={uploadMethod === 'new' ? numberOfTokens : numberOfTokensState.value} /> -
+
setSelectedMintToken(tokensList.find((t) => t.displayName === e.target.value))} value={selectedMintToken?.displayName} >