Skip to content

Commit

Permalink
removed debugging warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bearni95 committed Jun 3, 2024
1 parent 85fd514 commit d484007
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion packages/taikoon-ui/src/lib/token/balanceOf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export async function balanceOf(address: IAddress): Promise<number> {
if (!selectedNetworkId) return 0;

const chainId = selectedNetworkId as IChainId;
console.warn('calling balanceOf!');
const result = await readContract(config, {
abi: taikoonTokenAbi,
address: taikoonTokenAddress[chainId],
Expand Down
2 changes: 0 additions & 2 deletions packages/taikoon-ui/src/lib/token/canMint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export async function canMint(): Promise<boolean> {

const freeMintCount = await totalWhitelistMintCount();

console.warn('calling canMint!');

const result = await readContract(config, {
abi: taikoonTokenAbi,
address: taikoonTokenAddress[chainId],
Expand Down
1 change: 0 additions & 1 deletion packages/taikoon-ui/src/lib/token/estimateMintGasCost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export async function estimateMintGasCost(): Promise<number> {
const chainId = selectedNetworkId as IChainId;

const freeMintLeft = await totalWhitelistMintCount();
console.warn('calling estimateMintGasCost!');

if (await canMint()) {
const proof = getProof();
Expand Down
2 changes: 1 addition & 1 deletion packages/taikoon-ui/src/lib/token/maxSupply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import getConfig from '../wagmi/getConfig';

export async function maxSupply(): Promise<number> {
const { config, chainId } = getConfig();
console.warn('calling maxSupply!');

const result = await readContract(config, {
abi: taikoonTokenAbi,
address: taikoonTokenAddress[chainId],
Expand Down
2 changes: 1 addition & 1 deletion packages/taikoon-ui/src/lib/token/name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { IChainId } from '../../types';
export async function name(): Promise<string> {
const { selectedNetworkId } = web3modal.getState();
if (!selectedNetworkId) return '';
console.warn('calling name');

const chainId = selectedNetworkId as IChainId;

const result = await readContract(config, {
Expand Down
2 changes: 1 addition & 1 deletion packages/taikoon-ui/src/lib/token/ownerOf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { IAddress, IChainId } from '../../types';
export async function ownerOf(tokenId: number): Promise<IAddress> {
const { selectedNetworkId } = web3modal.getState();
if (!selectedNetworkId) return zeroAddress;
console.warn('calling ownerOf!');

const chainId = selectedNetworkId as IChainId;

const result = await readContract(config, {
Expand Down
2 changes: 1 addition & 1 deletion packages/taikoon-ui/src/lib/token/tokenURI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import getConfig from '../../lib/wagmi/getConfig';

export async function tokenURI(tokenId: number): Promise<string> {
const { config, chainId } = getConfig();
console.warn('calling TokenURI!');

const result = await readContract(config, {
abi: taikoonTokenAbi,
address: taikoonTokenAddress[chainId],
Expand Down
2 changes: 1 addition & 1 deletion packages/taikoon-ui/src/lib/token/totalSupply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import getConfig from '../../lib/wagmi/getConfig';

export async function totalSupply(): Promise<number> {
const { config, chainId } = getConfig();
console.warn('calling totalSupply!');

const result = await readContract(config, {
abi: taikoonTokenAbi,
address: taikoonTokenAddress[chainId],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { whitelist } from '../whitelist';

export async function totalWhitelistMintCount(): Promise<number> {
const { config, chainId } = getConfig();
console.warn('calling totalWhitelistMintCount!');

try {
const account = getAccount(config);
if (!account.address) return -1;
Expand Down

0 comments on commit d484007

Please sign in to comment.