Skip to content

Commit

Permalink
mint
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlec committed Aug 23, 2024
1 parent 33702ac commit f221884
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/components/TransactionWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down
13 changes: 3 additions & 10 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f221884

Please sign in to comment.