Merge pull request #208 from public-awesome/factory-switching

Fix factory switching related issues
This commit is contained in:
Jorge Hernandez 2023-08-30 07:39:57 -06:00 committed by GitHub
commit 1501c6790d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(