From f221884dc78791820a7135d596f9441e182d7d8e Mon Sep 17 00:00:00 2001 From: Alec Chen <93971719+0xAlec@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:00:07 -0400 Subject: [PATCH] mint --- src/components/TransactionWrapper.tsx | 10 +++++----- src/constants.ts | 13 +++---------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/components/TransactionWrapper.tsx b/src/components/TransactionWrapper.tsx index 1bf8aa9..254b161 100644 --- a/src/components/TransactionWrapper.tsx +++ b/src/components/TransactionWrapper.tsx @@ -13,16 +13,16 @@ import type { import type { ContractFunctionParameters } from 'viem'; import { BASE_SEPOLIA_CHAIN_ID, - clickContractABI, - clickContractAddress, + mintABI, + mintContractAddress } from '../constants'; export default function TransactionWrapper() { const contracts = [ { - address: clickContractAddress, - abi: clickContractABI, - functionName: 'click', + address: mintContractAddress, + abi: mintABI, + functionName: 'mint', args: [], }, ] as unknown as ContractFunctionParameters[]; diff --git a/src/constants.ts b/src/constants.ts index f902513..2815d1a 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -15,20 +15,13 @@ export const clickContractABI = [ export const collectionAddress = '0xd6915560d3bb24aec04dc42ef409921ed1931510'; export const comment = 'testing'; -export const mintContractAddress = '0x777777722D078c97c6ad07d9f36801e653E356Ae'; +export const mintContractAddress = '0x11b4128A343d9aB02bED83050c952f383EAb6B24'; export const mintABI = [ { - inputs: [ - { internalType: 'address', name: 'mintTo', type: 'address' }, - { internalType: 'uint256', name: 'quantity', type: 'uint256' }, - { internalType: 'address', name: 'collection', type: 'address' }, - { internalType: 'uint256', name: 'tokenId', type: 'uint256' }, - { internalType: 'address', name: 'mintReferral', type: 'address' }, - { internalType: 'string', name: 'comment', type: 'string' }, - ], + inputs: [], name: 'mint', outputs: [], - stateMutability: 'payable', + stateMutability: 'nonpayable', type: 'function', }, ] as const;