From a1af81ae2f90be49f67b5290e23d9705df2bc432 Mon Sep 17 00:00:00 2001 From: tomiir Date: Fri, 16 Feb 2024 11:02:38 -0600 Subject: [PATCH] chore: filter repeated transactions by minedAt --- packages/core/src/controllers/TransactionsController.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/core/src/controllers/TransactionsController.ts b/packages/core/src/controllers/TransactionsController.ts index 6e58ae1efb..f2d0fed699 100644 --- a/packages/core/src/controllers/TransactionsController.ts +++ b/packages/core/src/controllers/TransactionsController.ts @@ -101,13 +101,7 @@ export const TransactionsController = { const yearTransactions = grouped[year] ?? {} const monthTransactions = yearTransactions[month] ?? [] - if ( - monthTransactions.find( - t => - t.metadata.hash === transaction.metadata.hash && - t.metadata.status === transaction.metadata.status - ) - ) { + if (monthTransactions.find(t => t.metadata.minedAt === transaction.metadata.minedAt)) { return }