Fix: external_link related problem when creating with an existing base token uri

This commit is contained in:
Serkan Reis 2022-10-21 07:14:49 +03:00
parent b2bb9c68a3
commit b451ac46bf
2 changed files with 2 additions and 1 deletions

View File

@ -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,
}

View File

@ -54,6 +54,7 @@ const CollectionCreationPage: NextPage = () => {
vendingFactory: vendingFactoryContract,
} = useContracts()
const scrollRef = useRef<HTMLDivElement>(null)
const messages = useMemo(
() => vendingFactoryContract?.use(VENDING_FACTORY_ADDRESS),
[vendingFactoryContract, wallet.address],