From a2fdfad4e5fbc9560665570710a017830b1c0c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20T=C3=B3rz?= <93620601+torztomasz@users.noreply.github.com> Date: Mon, 21 Aug 2023 09:04:40 +0200 Subject: [PATCH] Fix wrong l2 txs count on state update page (#472) --- packages/backend/src/api/controllers/StateUpdateController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/api/controllers/StateUpdateController.ts b/packages/backend/src/api/controllers/StateUpdateController.ts index a8dca12e7..e82fbd504 100644 --- a/packages/backend/src/api/controllers/StateUpdateController.ts +++ b/packages/backend/src/api/controllers/StateUpdateController.ts @@ -132,7 +132,8 @@ export class StateUpdateController { priceChanges: priceEntries, l2Transactions: l2Transactions.map(l2TransactionToEntry), totalL2Transactions: sumUpTransactionCount( - preprocessedStateDetails?.cumulativeL2TransactionsStatistics + preprocessedStateDetails?.l2TransactionsStatistics, + this.excludeL2TransactionTypes ), transactions, totalTransactions: totalForcedUserTransactions,