From 952c704b0ef80d3d8f278acb957b22526c8a594f Mon Sep 17 00:00:00 2001 From: Viterbo Date: Fri, 16 Feb 2024 11:27:07 -0300 Subject: [PATCH] removing logs --- src/antelope/stores/history.ts | 15 --------------- src/pages/evm/wallet/WalletTransactionsTab.vue | 6 ------ 2 files changed, 21 deletions(-) diff --git a/src/antelope/stores/history.ts b/src/antelope/stores/history.ts index 19bb5c1c..0a024a5e 100644 --- a/src/antelope/stores/history.ts +++ b/src/antelope/stores/history.ts @@ -82,7 +82,6 @@ const store_name = 'history'; // (e.g. when loading the balances tab, which prefetches transactions, and quickly switching to the transactions tab) let fetchAccoutTransactionsIsRunning = false; let shouldRefetchAccoutTransactions = false; -let counter = 0; let nftTransfersUpdated : number | null = null; // the time in milliseconds since epoch when the NFT transfers were last updated @@ -121,16 +120,12 @@ export const useHistoryStore = defineStore(store_name, { async fetchEVMTransactionsForAccount(label: Label = CURRENT_CONTEXT) { this.trace('fetchEVMTransactionsForAccount', label); const feedbackStore = useFeedbackStore(); - const local_counter = counter++; - console.log(local_counter, 'fetchEVMTransactionsForAccount() 1 called'); if (!fetchAccoutTransactionsIsRunning) { feedbackStore.setLoading('history.fetchEVMTransactionsForAccount'); fetchAccoutTransactionsIsRunning = true; - console.log(local_counter, 'fetchEVMTransactionsForAccount() 2 - running'); } else { shouldRefetchAccoutTransactions = true; - console.log(local_counter, 'fetchEVMTransactionsForAccount() 3 - queued'); return; } @@ -149,9 +144,7 @@ export const useHistoryStore = defineStore(store_name, { this.__evm_nft_transfers[label].size === 0 || (nftTransfersUpdated && !dateIsWithinXMinutes(nftTransfersUpdated, 3)) ) { - console.log(local_counter, 'fetchEVMTransactionsForAccount() 4 - fetching NFT transfers...'); await this.fetchEvmNftTransfersForAccount(label, this.__evm_filter.address); - console.log(local_counter, 'fetchEVMTransactionsForAccount() 5 - done'); } const lastFilterUsedStr = JSON.stringify(this.__evm_last_filter_used); @@ -159,11 +152,9 @@ export const useHistoryStore = defineStore(store_name, { if (lastFilterUsedStr !== currentFilterStr) { this.__evm_last_filter_used = { ... toRaw(this.__evm_filter) }; - console.log(local_counter, 'fetchEVMTransactionsForAccount() 6 - fetching transactions...'); const transactionsResponse = await chainSettings.getEVMTransactions(toRaw(this.__evm_filter)); const contracts = transactionsResponse.contracts; const transactions = transactionsResponse.results; - console.log(local_counter, 'fetchEVMTransactionsForAccount() 7 - done'); this.setEvmTransactionsRowCount(label, transactionsResponse.total_count); @@ -184,27 +175,21 @@ export const useHistoryStore = defineStore(store_name, { this.setEVMTransactions(label, transactions); - console.log(local_counter, 'fetchEVMTransactionsForAccount() 8 - shaping transactions...'); await this.shapeTransactions(label, transactions); - console.log(local_counter, 'fetchEVMTransactionsForAccount() 9 - done'); } else { - console.log(local_counter, 'fetchEVMTransactionsForAccount() 10 - no need to fetch transactions'); } } catch (error) { console.error(error); throw new AntelopeError('antelope.history.error_fetching_transactions'); } finally { fetchAccoutTransactionsIsRunning = false; - console.log(local_counter, 'fetchEVMTransactionsForAccount() 11 - stop running'); if (shouldRefetchAccoutTransactions) { - console.log(local_counter, 'fetchEVMTransactionsForAccount() 12 - refetching...'); await this.fetchEVMTransactionsForAccount(label); } else { feedbackStore.unsetLoading('history.fetchEVMTransactionsForAccount'); } - console.log(local_counter, 'fetchEVMTransactionsForAccount() 13 - FINISHED'); } }, diff --git a/src/pages/evm/wallet/WalletTransactionsTab.vue b/src/pages/evm/wallet/WalletTransactionsTab.vue index f0becd5e..e613731c 100644 --- a/src/pages/evm/wallet/WalletTransactionsTab.vue +++ b/src/pages/evm/wallet/WalletTransactionsTab.vue @@ -81,7 +81,6 @@ export default defineComponent({ const { rowsPerPage, page } = newPagination; - console.log(this.loading, this.shapedTransactions.length, 'watch(pagination)', toRaw(newPagination)); this.$router.replace({ name: 'evm-wallet', query: { @@ -111,7 +110,6 @@ export default defineComponent({ } else { this.pagination.rowsNumber = newValue; } - console.log(this.loading, this.shapedTransactions.length, 'watch(totalRows)', newValue, toRaw(this.pagination)); }, }, $route(newRoute) { @@ -126,7 +124,6 @@ export default defineComponent({ rowsNumber: this.pagination.rowsNumber, }; - console.log(this.loading, this.shapedTransactions.length, 'watch($route)', toRaw(this.pagination)); this.getTransactions().finally(() => { this.rowsPerPageUpdating = false; }); @@ -166,7 +163,6 @@ export default defineComponent({ this.pagination.rowsCurrentPage = this.pagination.rowsPerPage; } - console.log(this.loading, this.shapedTransactions.length, 'getTransactions()', toRaw(this.pagination)); if (this.address) { historyStore.setEVMTransactionsFilter({ @@ -176,11 +172,9 @@ export default defineComponent({ includeAbi: true, }); try { - console.log(this.loading, this.shapedTransactions.length, 'getTransactions() --> fetchEVMTransactionsForAccount() ...'); await historyStore.fetchEVMTransactionsForAccount(CURRENT_CONTEXT); this.pagination.rowsNumber = historyStore.getEvmTransactionsRowCount(CURRENT_CONTEXT); this.initialLoadComplete = true; - console.log(this.loading, this.shapedTransactions.length, 'getTransactions() --> fetchEVMTransactionsForAccount() done', toRaw(this.pagination)); } catch (e) { if (e instanceof AntelopeError) { getAntelope().config.notifyFailureMessage(e.message, e.payload);