Skip to content

Commit

Permalink
refactor: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Aug 26, 2024
1 parent 86bc49e commit 4ffbda8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/app/src/hooks/useTokenList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ async function populateTokenList() {
'https://raw.githubusercontent.com/celo-org/celo-token-list/main/celo.tokenlist.json'
).then((_) => _.json());
if (isEqual(newList?.version, tokensJson?.version) === false) {
console.log({ a: JSON.stringify(newList), b: JSON.stringify(tokensJson) });
await AsyncStorage.setItem('celo.tokenlist.json', JSON.stringify(newList));
populateTokenList();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ describe('GoodCollective SDK', () => {
it('should support single with swap', async () => {
const pool = await sdk.createPool(...testPoolSettings);

const balance = await gooddollar.balanceOf(wallet.address);
const routerBalance = await gooddollar.balanceOf(await pool.swapRouter());
console.log({ balance, router: await pool.swapRouter(), routerBalance });
// const balance = await gooddollar.balanceOf(wallet.address);
// const routerBalance = await gooddollar.balanceOf(await pool.swapRouter());
// console.log({ balance, router: await pool.swapRouter(), routerBalance });
await (await gooddollar.connect(wallet).approve(pool.address, '1000')).wait();
const tx = await sdk.supportSingleWithSwap(wallet, pool.address, {
amount: 1000,
Expand Down
2 changes: 0 additions & 2 deletions packages/sdk-js/src/goodcollective/goodcollective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export class GoodCollectiveSDK {
this.contracts.UBIPool?.abi || UBIPoolAbi || [],
readProvider
) as UBIPool;
console.log('ubi abi:', this.contracts.UBIPool?.abi);
// initialize framework
const opts = {
chainId: Number(chainId),
Expand Down Expand Up @@ -542,7 +541,6 @@ export class GoodCollectiveSDK {
const token = new ethers.Contract(await swap.swapFrom, tcabi, signer);
const signerAddress = await signer.getAddress();
const allowance = await token.allowance(signerAddress, poolAddress);
console.log({ allowance, amount: await swap.amount });
if (allowance.lt(ethers.BigNumber.from(swap.amount))) {
throw new Error('Not enough allowance');
}
Expand Down

0 comments on commit 4ffbda8

Please sign in to comment.