diff --git a/bridge-history-api/internal/orm/batch_event.go b/bridge-history-api/internal/orm/batch_event.go index 76ed47ce3b..d50fcb76a1 100644 --- a/bridge-history-api/internal/orm/batch_event.go +++ b/bridge-history-api/internal/orm/batch_event.go @@ -55,7 +55,7 @@ func NewBatchEvent(db *gorm.DB) *BatchEvent { return &BatchEvent{db: db} } -// GetBatchEventSyncedHeightInDB returns the maximum l1_block_number from the batch_event table. +// GetBatchEventSyncedHeightInDB returns the maximum l1_block_number from the batch_event_v2 table. func (c *BatchEvent) GetBatchEventSyncedHeightInDB(ctx context.Context) (uint64, error) { var batch BatchEvent db := c.db.WithContext(ctx) diff --git a/bridge-history-api/internal/orm/cross_message.go b/bridge-history-api/internal/orm/cross_message.go index 56626b17fa..27a9f4c889 100644 --- a/bridge-history-api/internal/orm/cross_message.go +++ b/bridge-history-api/internal/orm/cross_message.go @@ -475,9 +475,9 @@ func (c *CrossMessage) InsertOrUpdateL2RelayedMessagesOfL1Deposits(ctx context.C Exprs: []clause.Expression{ clause.And( // do not over-write terminal statuses. - clause.Neq{Column: "cross_message.tx_status", Value: TxStatusTypeRelayed}, - clause.Neq{Column: "cross_message.tx_status", Value: TxStatusTypeFailedRelayed}, - clause.Neq{Column: "cross_message.tx_status", Value: TxStatusTypeDropped}, + clause.Neq{Column: "cross_message_v2.tx_status", Value: TxStatusTypeRelayed}, + clause.Neq{Column: "cross_message_v2.tx_status", Value: TxStatusTypeFailedRelayed}, + clause.Neq{Column: "cross_message_v2.tx_status", Value: TxStatusTypeDropped}, ), }, }, @@ -531,9 +531,9 @@ func (c *CrossMessage) InsertOrUpdateL1RelayedMessagesOfL2Withdrawals(ctx contex Exprs: []clause.Expression{ clause.And( // do not over-write terminal statuses. - clause.Neq{Column: "cross_message.tx_status", Value: TxStatusTypeRelayed}, - clause.Neq{Column: "cross_message.tx_status", Value: TxStatusTypeFailedRelayed}, - clause.Neq{Column: "cross_message.tx_status", Value: TxStatusTypeDropped}, + clause.Neq{Column: "cross_message_v2.tx_status", Value: TxStatusTypeRelayed}, + clause.Neq{Column: "cross_message_v2.tx_status", Value: TxStatusTypeFailedRelayed}, + clause.Neq{Column: "cross_message_v2.tx_status", Value: TxStatusTypeDropped}, ), }, }, diff --git a/common/version/version.go b/common/version/version.go index c1f272df63..83e9686780 100644 --- a/common/version/version.go +++ b/common/version/version.go @@ -5,7 +5,7 @@ import ( "runtime/debug" ) -var tag = "v4.3.47" +var tag = "v4.3.48" var commit = func() string { if info, ok := debug.ReadBuildInfo(); ok {