node: fix aptos reobservation

This commit is contained in:
Evan Gray 2023-03-07 17:23:51 +00:00 committed by Evan Gray
parent 053b73375b
commit 9da2bd4150
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ func (e *Watcher) Run(ctx context.Context) error {
panic("invalid chain ID")
}
nativeSeq := binary.BigEndian.Uint64(r.TxHash)
// uint64 will read the *first* 8 bytes, but the sequence is stored in the *last* 8.
nativeSeq := binary.BigEndian.Uint64(r.TxHash[24:])
logger.Info("Received obsv request", zap.Uint64("tx_hash", nativeSeq))