Skip to content

Commit

Permalink
fix: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Argeare5 committed Oct 27, 2023
1 parent 3dec8e3 commit c0a23e9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bgd-labs/frontend-web3-utils",
"description": "Frontend utilities common to multiple Web3 projects",
"version": "0.4.13",
"version": "0.4.2",
"author": "BGD labs",
"license": "MIT",
"private": false,
Expand Down
2 changes: 0 additions & 2 deletions src/hooks/useLastTxLocalStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export const useLastTxLocalStatus = <T extends BaseTx>({
}: LastTxStatusesParams<T>) => {
const tx = selectLastTxByTypeAndPayload(state, activeAddress, type, payload);

console.log('last tx', tx);

const [fullTxErrorMessage, setFullTxErrorMessage] = useState<string | Error>(
'',
);
Expand Down
3 changes: 0 additions & 3 deletions src/web3/adapters/EthereumAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export class EthereumAdapter<T extends BaseTx> implements AdapterInterface<T> {
}): Promise<T & { status?: TransactionStatus; pending: boolean }> => {
const { activeWallet, chainId, type } = params;
const tx = params.tx as InitialEthTx;
console.log('init execute tx', tx);
const from = activeWallet.address;
const transaction = {
chainId,
Expand Down Expand Up @@ -109,8 +108,6 @@ export class EthereumAdapter<T extends BaseTx> implements AdapterInterface<T> {
return;
}

console.log('waitForTransactionReceipt receipt', txn);

this.updateTXStatus({
hash: txHash,
status:
Expand Down
6 changes: 0 additions & 6 deletions src/web3/store/transactionsSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,13 @@ export const selectLastTxByTypeAndPayload = <T extends BaseTx>(
) => {
const allTransactions = selectAllTransactionsByWallet(state, from);

console.log('allTransactions', allTransactions);

const filteredTransactions = allTransactions.filter(
(tx) => tx.type === type && isEqual(tx.payload, payload),
);

console.log('filteredTransactions', filteredTransactions);

const lastFilteredTransaction =
filteredTransactions[filteredTransactions.length - 1];

console.log('lastFilteredTransaction', lastFilteredTransaction);

if (lastFilteredTransaction) {
if (isGelatoBaseTx(lastFilteredTransaction)) {
return selectTXByKey(state, lastFilteredTransaction.taskId);
Expand Down

0 comments on commit c0a23e9

Please sign in to comment.