diff --git a/src/app/[netname]/bounty/[id]/layout.tsx b/src/app/[netname]/bounty/[id]/layout.tsx index 0a77574e..5d1985df 100644 --- a/src/app/[netname]/bounty/[id]/layout.tsx +++ b/src/app/[netname]/bounty/[id]/layout.tsx @@ -10,10 +10,10 @@ type Props = { params: { id: string; netname: string }; }; -function weiToEther(weiValue: string | number | bigint): string { - const etherValue = Number(weiValue) / 1e18; - return etherValue.toFixed(6); -} +// function weiToEther(weiValue: string | number | bigint): string { +// const etherValue = Number(weiValue) / 1e18; +// return etherValue.toFixed(6); +// } export async function generateMetadata({ params }: Props): Promise { try { @@ -23,7 +23,7 @@ export async function generateMetadata({ params }: Props): Promise { try { token = params.netname; } catch (error) { - console.log('params?.netname open graph error: ', error); + // console.log('params?.netname open graph error: ', error); return {}; } let currency = 'degen'; @@ -69,7 +69,7 @@ export async function generateMetadata({ params }: Props): Promise { }, }; } catch (error) { - console.log('layout open graph error: ', error); + // console.log('layout open graph error: ', error); return {}; } } diff --git a/src/app/[netname]/layout.tsx b/src/app/[netname]/layout.tsx index f5a7f454..3bab1ed0 100644 --- a/src/app/[netname]/layout.tsx +++ b/src/app/[netname]/layout.tsx @@ -26,7 +26,7 @@ export async function generateMetadata({ params }: Props): Promise { "poidh - pics or it didn't happen - fully onchain bounties + collectible NFTs - start your collection today on Arbitrum, Base, or Degen Chain", }; } catch (error) { - console.log('layout open graph error: ', error); + // console.log('layout open graph error: ', error); return {}; } } diff --git a/src/app/bounty/[id]/layout.tsx b/src/app/bounty/[id]/layout.tsx index 5f54ee2e..a4077bc4 100644 --- a/src/app/bounty/[id]/layout.tsx +++ b/src/app/bounty/[id]/layout.tsx @@ -34,7 +34,7 @@ export async function generateMetadata({ params }: Props): Promise { } // Log fetched data for debugging - console.log('Fetched bountyData:', bountyData); + // console.log('Fetched bountyData:', bountyData); if (!bountyData.amount) { throw new Error('Bounty amount is null or undefined'); @@ -75,7 +75,7 @@ export async function generateMetadata({ params }: Props): Promise { }, }; } catch (error) { - console.log('layout open graph error: ', error); + // console.log('layout open graph error: ', error); return {}; } } diff --git a/src/app/context/WalletProvider.tsx b/src/app/context/WalletProvider.tsx index 7597758f..fb15730e 100644 --- a/src/app/context/WalletProvider.tsx +++ b/src/app/context/WalletProvider.tsx @@ -49,7 +49,7 @@ const WalletProvider: React.FC = ({ children }) => { const account = accounts[0]; setWalletAddress(account); } catch (error) { - console.log(error); + // console.log(error); } } else { setWalletAddress('No wallet'); diff --git a/src/app/context/web3.tsx b/src/app/context/web3.tsx index f95968b4..851a4d18 100644 --- a/src/app/context/web3.tsx +++ b/src/app/context/web3.tsx @@ -51,7 +51,7 @@ export const getContract = async (signer: any) => { export const getContractRead = async () => { const provider = await getProvider(); const currentChain = chainStatusStore.currentChain; - console.log('getContractRead', currentChain.name); + // console.log('getContractRead', currentChain.name); return new Contract(currentChain.contracts.mainContract, ABI, provider); }; diff --git a/src/components/account/AccountInfoShare.tsx b/src/components/account/AccountInfoShare.tsx index 716e3dd1..4bc27dd4 100644 --- a/src/components/account/AccountInfoShare.tsx +++ b/src/components/account/AccountInfoShare.tsx @@ -172,7 +172,7 @@ const AccountInfo = () => { }, [completedBounties]); useEffect(() => { - console.log('claims:'); + // console.log('claims:'); const bountyIds = completedClaims.map((claim) => claim.bountyId); let totalAmount = BigInt(0); Promise.all( diff --git a/src/components/bounty/BountyInfo.tsx b/src/components/bounty/BountyInfo.tsx index f0b63a94..439d7b1d 100644 --- a/src/components/bounty/BountyInfo.tsx +++ b/src/components/bounty/BountyInfo.tsx @@ -62,7 +62,7 @@ const BountyInfo = ({ bountyId }: { bountyId: string }) => { toast.success('Bounty canceled successfully!'); } catch (error) { // Refactor Change -- Remove This - console.error('Error canceling bounty:', error); + // console.error('Error canceling bounty:', error); const errorCode = (error as unknown as ErrorInfo)?.info?.error?.code; if (errorCode === 4001) { toast.error('Transaction denied by user.'); @@ -82,7 +82,7 @@ const BountyInfo = ({ bountyId }: { bountyId: string }) => { toast.success('Bounty canceled successfully!'); } catch (error) { // Refactor Change -- Remove This - console.error('Error canceling:', error); + // console.error('Error canceling:', error); const errorCode = (error as unknown as ErrorInfo)?.info?.error?.code; if (errorCode === 4001) { toast.error('Transaction denied by user.'); diff --git a/src/components/bounty/BountyProvider.tsx b/src/components/bounty/BountyProvider.tsx index 08870406..7d4de488 100644 --- a/src/components/bounty/BountyProvider.tsx +++ b/src/components/bounty/BountyProvider.tsx @@ -65,9 +65,9 @@ export const BountyProvider = ({ getParticipants(bountyId) .then((openBounty) => { - console.log('openBounty.addresses:'); + // console.log('openBounty.addresses:'); - console.log(openBounty.addresses); + // console.log(openBounty.addresses); setIsMultiplayer(openBounty.addresses.length > 0); setIsOwnerContributor( @@ -85,8 +85,8 @@ export const BountyProvider = ({ setIsVoting(currentVotingClaim === 0); })(); - console.log('current voting:'); - console.log(isVoting); + // console.log('current voting:'); + // console.log(isVoting); } }, [bountyId, currentUser]);