fix: use txHash from observation (#100)

This commit is contained in:
ftocal 2023-01-26 17:58:37 -03:00 committed by GitHub
parent f23f9f78ab
commit 215a00ccc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ func (s *Repository) UpsertObservation(o *gossipv1.SignedObservation) error {
ChainID: vaa.ChainID(chainID),
Emitter: emitter,
Sequence: strconv.FormatUint(sequence, 10),
TxHash: hex.EncodeToString(o.GetHash()),
TxHash: hex.EncodeToString(o.GetTxHash()),
UpdatedAt: &now,
}