From bf697745d53273e3e6ed8c3f73969c516841fc0a Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Tue, 29 Aug 2023 14:13:57 +0300 Subject: [PATCH] Fix factory switching related issues --- components/openEdition/OpenEditionMinterCreator.tsx | 8 +++++++- pages/collections/create.tsx | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/components/openEdition/OpenEditionMinterCreator.tsx b/components/openEdition/OpenEditionMinterCreator.tsx index 190c279..c722c8f 100644 --- a/components/openEdition/OpenEditionMinterCreator.tsx +++ b/components/openEdition/OpenEditionMinterCreator.tsx @@ -123,7 +123,13 @@ export const OpenEditionMinterCreator = ({ openEditionFactoryContract?.use( collectionDetails?.updatable ? updatableFactoryAddressForSelectedDenom : factoryAddressForSelectedDenom, ), - [openEditionFactoryContract, wallet.address], + [ + openEditionFactoryContract, + wallet.address, + collectionDetails?.updatable, + factoryAddressForSelectedDenom, + updatableFactoryAddressForSelectedDenom, + ], ) const performOpenEditionMinterChecks = () => { diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 2137308..13896d7 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -124,7 +124,7 @@ const CollectionCreationPage: NextPage = () => { const vendingFactoryMessages = useMemo( () => vendingFactoryContract?.use(vendingFactoryAddress as string), - [vendingFactoryContract, wallet.address], + [vendingFactoryContract, wallet.address, vendingFactoryAddress], ) const baseFactoryMessages = useMemo(