Skip to content

Commit

Permalink
chore: remove unused console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
chalabi2 committed Jan 8, 2025
1 parent 657e07c commit e288200
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion components/factory/forms/MintForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default function MintForm({
mintToAddress: recipient,
});

console.log('Estimating fee for address (mint):', address);
const fee = await estimateFee(address ?? '', [msg]);
await tx([msg], {
fee,
Expand Down
2 changes: 1 addition & 1 deletion components/groups/components/myGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function YourGroups({
return 'Untitled Group'.toLowerCase().includes(searchTerm.toLowerCase());
}
});
console.log(groups);

const totalPages = Math.ceil(filteredGroups.length / pageSize.groupInfo);

const paginatedGroupEntries = filteredGroups.slice(
Expand Down
4 changes: 1 addition & 3 deletions utils/maths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ export const parseNumberToBigInt = (v: string, maxDigits: number = 6) => {
}
const precision = new BigNumber(10).pow(maxDigits);
const b = amount.times(precision).toFixed();
console.log('amount', amount);
console.log('precision', precision);
console.log('BBBBBBBBBBBBBBB', b);

return BigInt(b);
};

Expand Down
6 changes: 2 additions & 4 deletions utils/transactionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const useSimulateDenomCreation = () => {

const simulateDenomCreation = async (subdenom: string): Promise<boolean> => {
if (!address) {
console.log('Simulation failed: No address available');
console.error('Simulation failed: No address available');
return false;
}

Expand All @@ -25,11 +25,10 @@ export const useSimulateDenomCreation = () => {
});

try {
console.log(`Simulating denom creation for subdenom: ${subdenom}`);
const result = await tx([msg], { simulate: true, returnError: true });

if (result === undefined) {
console.log('Simulation result is undefined');
console.error('Simulation result is undefined');
return false;
}

Expand All @@ -38,7 +37,6 @@ export const useSimulateDenomCreation = () => {
return false;
}

console.log('Simulation successful');
return true;
} catch (error) {
console.error('Unexpected error during simulation:', error);
Expand Down

0 comments on commit e288200

Please sign in to comment.