From bb017412f7210b0ac3ff51a6fc9a851fb6037975 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Thu, 6 Oct 2022 16:16:58 +0300 Subject: [PATCH 1/3] Check whitelist contract validity prior to collection creation --- components/ConfirmationModal.tsx | 2 +- .../collections/creation/MintingDetails.tsx | 2 +- pages/collections/create.tsx | 20 ++++++++++++++----- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/components/ConfirmationModal.tsx b/components/ConfirmationModal.tsx index 23928d7..c00ff66 100644 --- a/components/ConfirmationModal.tsx +++ b/components/ConfirmationModal.tsx @@ -6,7 +6,7 @@ export interface ConfirmationModalProps { export const ConfirmationModal = (props: ConfirmationModalProps) => { return (
- +
{readyToCreate && }
-
From a325c07384822446a1bc1d855991e2fdaf9d188d Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Thu, 6 Oct 2022 16:55:54 +0300 Subject: [PATCH 3/3] Update whitelist configuration error message --- pages/collections/create.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 1a3be53..44b7091 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -77,7 +77,7 @@ const CollectionCreationPage: NextPage = () => { setReadyToCreate(true) }) .catch((err) => { - toast.error(`Invalid whitelist contract address: ${err.message}`) + toast.error(`Error in Whitelist Configuration: ${err.message}`) setReadyToCreate(false) }) } catch (error: any) { @@ -500,7 +500,7 @@ const CollectionCreationPage: NextPage = () => { {readyToCreate && }