From 6032adb6262832388ec7b723b987b41f32eb55a1 Mon Sep 17 00:00:00 2001 From: Janek Rahrt Date: Fri, 29 Oct 2021 13:59:32 +0200 Subject: [PATCH] fix: remove console.logs --- __tests__/contracts.test.ts | 2 +- src/starknet.ts | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/__tests__/contracts.test.ts b/__tests__/contracts.test.ts index 5d43f4582..89ed8e014 100644 --- a/__tests__/contracts.test.ts +++ b/__tests__/contracts.test.ts @@ -21,7 +21,7 @@ describe('class Contract {}', () => { transaction_hash, address: erc20address, } = await deployContract(compiledERC20, []); - console.log(erc20address); + contract = new Contract(compiledERC20.abi, erc20address); // I want to show the tx number to the tester, so he/she can trace the transaction in the explorer. // eslint-disable-next-line no-console diff --git a/src/starknet.ts b/src/starknet.ts index e537af69a..63bf406ce 100644 --- a/src/starknet.ts +++ b/src/starknet.ts @@ -197,12 +197,6 @@ export function addTransaction(tx: Transaction): Promise const signature = tx.type === 'INVOKE_FUNCTION' && formatSignature(tx.signature); const contract_address_salt = tx.type === 'DEPLOY' && toHex(toBN(tx.contract_address_salt)); - console.log({ - ...tx, - ...(Array.isArray(signature) && { signature }), // not needed on deploy tx - ...(contract_address_salt && { contract_address_salt }), // not needed on invoke tx - }); - return new Promise((resolve, reject) => { axios .post(`${GATEWAY_URL}/add_transaction`, {