Skip to content

Commit

Permalink
move var to constants file
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Aug 8, 2024
1 parent 96a2bbb commit 670b9b6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/components/TransactionWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@ import {
TransactionStatusAction,
TransactionStatusLabel,
} from '@coinbase/onchainkit/transaction';
import type { TransactionError, TransactionResponse } from '@coinbase/onchainkit/transaction';
import { mintABI, mintContractAddress } from 'src/constants';
import type {
TransactionError,
TransactionResponse,
} from '@coinbase/onchainkit/transaction';
import {
BASE_SEPOLIA_CHAIN_ID,
collectionAddress,
comment,
mintABI,
mintContractAddress,
mintReferral,
quantity,
tokenId,
} from 'src/constants';
import type { Address, ContractFunctionParameters } from 'viem';
import { parseEther } from 'viem';

const BASE_SEPOLIA_CHAIN_ID = 84532;

const collectionAddress = '0xd6915560d3bb24aec04dc42ef409921ed1931510';
const tokenId = '1';
const quantity = '1';
const mintReferral = '0x0000000000000000000000000000000000000000';
const comment = 'testing';

type TransactionWrapperParams = {
address: Address;
};
Expand Down
8 changes: 8 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ export const mintABI = [
type: 'function',
},
] as const;

export const BASE_SEPOLIA_CHAIN_ID = 84532;

export const collectionAddress = '0xd6915560d3bb24aec04dc42ef409921ed1931510';
export const tokenId = '1';
export const quantity = '1';
export const mintReferral = '0x0000000000000000000000000000000000000000';
export const comment = 'testing';

0 comments on commit 670b9b6

Please sign in to comment.