Skip to content

Commit 342061d

Browse files
committed
fix: using appendLockHashInfos
1 parent 25ed522 commit 342061d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

packages/neuron-wallet/src/services/indexer/queue.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ export default class IndexerQueue {
5959
this.indexed = false
6060
}
6161

62+
public appendLockHashInfos = (lockHashInfos: LockHashInfo[]): void => {
63+
const infos = this.lockHashInfos.concat(lockHashInfos)
64+
this.setLockHashInfos(infos)
65+
}
66+
6267
public reset = () => {
6368
this.resetFlag = true
6469
}

packages/neuron-wallet/src/startup/sync-block-task/indexer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const switchNetwork = async (nodeURL: string) => {
5151
})
5252
})
5353
)).reduce((acc, val) => acc.concat(val), [])
54-
indexerQueue.setLockHashInfos(infos)
54+
indexerQueue.appendLockHashInfos(infos)
5555
}
5656
})
5757

0 commit comments

Comments
 (0)