Skip to content

Commit

Permalink
indexer: update format string for uuid.UUID
Browse files Browse the repository at this point in the history
The relayEvent variable is of type uuid.UUID, but it's being formatted as an
integer (%d). This will cause a runtime error. Use %s to format the UUID as a
string.
  • Loading branch information
keroro520 committed Mar 7, 2024
1 parent 9cccd6b commit 19c5bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/database/bridge_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (db bridgeMessagesDB) MarkRelayedL1BridgeMessage(messageHash common.Hash, r
if message.RelayedMessageEventGUID != nil && message.RelayedMessageEventGUID.ID() == relayEvent.ID() {
return nil
} else if message.RelayedMessageEventGUID != nil {
return fmt.Errorf("relayed message %s re-relayed with a different event %d", messageHash, relayEvent)
return fmt.Errorf("relayed message %s re-relayed with a different event %s", messageHash, relayEvent)
}

message.RelayedMessageEventGUID = &relayEvent
Expand Down

0 comments on commit 19c5bec

Please sign in to comment.