Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Dec 5, 2023
1 parent 654b6b4 commit f596dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge-history-api/orm/cross_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ func (c *CrossMessage) UpdateL1MessageQueueEventsInfo(ctx context.Context, l1Mes
if l1MessageQueueEvent.EventType == MessageQueueEventTypeQueueTransaction {
updateFields := make(map[string]interface{})
// Update tx hash if it's a message replay.
updateFields["l1_tx_hash"] = l1MessageQueueEvent.TxHash
updateFields["l1_tx_hash"] = l1MessageQueueEvent.TxHash.String()
updateFields["queue_index"] = l1MessageQueueEvent.QueueIndex
db = db.Where("message_hash = ?", l1MessageQueueEvent.MessageHash)
db = db.Where("message_hash = ?", l1MessageQueueEvent.MessageHash.String())
if err := db.Updates(updateFields).Error; err != nil {
return fmt.Errorf("failed to update L1 tx hash of QueueTransaction, event: %+v, error: %w", l1MessageQueueEvent, err)
}
Expand Down

0 comments on commit f596dc7

Please sign in to comment.