Fix factory switching related issues

This commit is contained in:
Serkan Reis 2023-08-29 14:13:57 +03:00
parent 1c06ae3eab
commit bf697745d5
2 changed files with 8 additions and 2 deletions

View File

@ -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 = () => {

View File

@ -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(