Skip to content

Commit 6517f07

Browse files
committed
watcher: turn Number into BigInt
1 parent 65ed258 commit 6517f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

watcher/src/watchers/AptosWatcher.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class AptosWatcher extends Watcher {
6262
const timestamp = new Date(Number(block.block_timestamp) / 1000).toISOString();
6363
const blockKey = [block.block_height, timestamp, sequence_number].join('/'); // use custom block key for now so we can include sequence number
6464
// Data.sender is a decimal as a string. It needs to be hexadecimal.
65-
const emitter = Number(data.sender).toString(16).padStart(64, '0');
65+
const emitter = BigInt(data.sender).toString(16).padStart(64, '0');
6666
const vaaKey = makeVaaKey(transaction.hash, this.chain, emitter, data.sequence);
6767
vaasByBlock[blockKey] = [...(vaasByBlock[blockKey] ?? []), vaaKey];
6868
})

0 commit comments

Comments
 (0)