Skip to content

Commit

Permalink
fix: remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Oct 29, 2021
1 parent 8976091 commit 6032adb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion __tests__/contracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions src/starknet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,6 @@ export function addTransaction(tx: Transaction): Promise<AddTransactionResponse>
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`, {
Expand Down

0 comments on commit 6032adb

Please sign in to comment.