From b451ac46bf10f89e3fbfb5e5367f779b5a6a8f6d Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Fri, 21 Oct 2022 07:14:49 +0300 Subject: [PATCH] Fix: external_link related problem when creating with an existing base token uri --- components/collections/creation/CollectionDetails.tsx | 2 +- pages/collections/create.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/collections/creation/CollectionDetails.tsx b/components/collections/creation/CollectionDetails.tsx index d8b56cc..a078689 100644 --- a/components/collections/creation/CollectionDetails.tsx +++ b/components/collections/creation/CollectionDetails.tsx @@ -71,7 +71,7 @@ export const CollectionDetails = ({ onChange, uploadMethod, coverImageUrl }: Col description: descriptionState.value, symbol: symbolState.value, imageFile: coverImage ? [coverImage] : [], - externalLink: externalLinkState.value, + externalLink: externalLinkState.value || undefined, startTradingTime: timestamp ? (timestamp.getTime() * 1_000_000).toString() : '', explicit, } diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 7780014..006d5e4 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -54,6 +54,7 @@ const CollectionCreationPage: NextPage = () => { vendingFactory: vendingFactoryContract, } = useContracts() const scrollRef = useRef(null) + const messages = useMemo( () => vendingFactoryContract?.use(VENDING_FACTORY_ADDRESS), [vendingFactoryContract, wallet.address],