diff --git a/env.d.ts b/env.d.ts index 0859147..dd2d888 100644 --- a/env.d.ts +++ b/env.d.ts @@ -17,6 +17,7 @@ declare namespace NodeJS { readonly NEXT_PUBLIC_SG721_CODE_ID: string readonly NEXT_PUBLIC_MINTER_CODE_ID: string readonly NEXT_PUBLIC_WHITELIST_CODE_ID: string + readonly NEXT_PUBLIC_SG721_UPDATABLE_V1_CODE_ID: string readonly NEXT_PUBLIC_PINATA_ENDPOINT_URL: string readonly NEXT_PUBLIC_API_URL: string diff --git a/pages/contracts/sg721/migrate.tsx b/pages/contracts/sg721/migrate.tsx index ce37207..bb617a5 100644 --- a/pages/contracts/sg721/migrate.tsx +++ b/pages/contracts/sg721/migrate.tsx @@ -1,4 +1,7 @@ +import { Alert } from 'components/Alert' +import { Anchor } from 'components/Anchor' import { Button } from 'components/Button' +import { Conditional } from 'components/Conditional' import { ContractPageHeader } from 'components/ContractPageHeader' import { useExecuteComboboxState } from 'components/contracts/sg721/ExecuteCombobox.hooks' import { FormControl } from 'components/FormControl' @@ -19,6 +22,7 @@ import { useEffect, useState } from 'react' import { toast } from 'react-hot-toast' import { FaArrowRight } from 'react-icons/fa' import { useMutation } from 'react-query' +import { SG721_UPDATABLE_V1_CODE_ID } from 'utils/constants' import { withMetadata } from 'utils/layout' import { links } from 'utils/links' @@ -36,6 +40,7 @@ const Sg721MigratePage: NextPage = () => { title: 'Code ID', subtitle: 'Code ID of the New Sg721 contract', placeholder: '1', + defaultValue: SG721_UPDATABLE_V1_CODE_ID, }) const contractState = useInputState({ @@ -102,6 +107,23 @@ const Sg721MigratePage: NextPage = () => {