Skip to content

Commit

Permalink
remove XCM txs in getZkEVMTxHistories function
Browse files Browse the repository at this point in the history
  • Loading branch information
gtg7784 committed Jun 11, 2024
1 parent 8a608e1 commit 5de9b49
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/modules/information/recent-history/transfer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,14 @@ export const getZkEVMTxHistories = async ({
network: string;
}): Promise<RecentHistory[]> => {
const txs: TxHistory[] = [];
const histories = [XVM_TX_HISTORIES, XCM_TX_HISTORIES, TX_HISTORIES];
const storageKey = TX_HISTORIES;

histories.forEach((storageKey) => {
const transactions = getAccountHistories({
storageKey,
address,
network,
});
transactions.forEach((it) => txs.push(it));
const transactions = getAccountHistories({
storageKey,
address,
network,
});
transactions.forEach((it) => txs.push(it));

const formattedTxs = txs.sort((a, b) => b.timestamp - a.timestamp).slice(0, NumberOfHistories);

Expand Down

0 comments on commit 5de9b49

Please sign in to comment.