Skip to content

Commit 9d56aee

Browse files
committed
fix: hex number in indexer mode
1 parent 53d2df2 commit 9d56aee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/neuron-wallet/src/services/indexer

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default class IndexerQueue {
151151
const nonIndexedLockHashInfos = lockHashInfos.filter(i => !indexedLockHashes.includes(i.lockHash))
152152

153153
await Utils.mapSeries(nonIndexedLockHashInfos, async (info: LockHashInfo) => {
154-
const indexFrom: string | undefined = info.isImporting ? '0' : undefined
154+
const indexFrom: string | undefined = info.isImporting ? '0x0' : undefined
155155
await this.indexerRPC.indexLockHash(info.lockHash, indexFrom)
156156
})
157157
}
@@ -161,7 +161,7 @@ export default class IndexerQueue {
161161
let page = 0
162162
let stopped = false
163163
while (!stopped) {
164-
const txs = await this.indexerRPC.getTransactionByLockHash(lockHash, page.toString(), this.per.toString())
164+
const txs = await this.indexerRPC.getTransactionByLockHash(lockHash, `0x${page.toString(16)}`, `0x${this.per.toString(16)}`)
165165
if (txs.length < this.per) {
166166
stopped = true
167167
}

0 commit comments

Comments
 (0)