From 515ca99badb2e1a5405281cce555150a96211c52 Mon Sep 17 00:00:00 2001 From: Roberto Bayardo Date: Mon, 12 Jun 2023 09:49:23 -0700 Subject: [PATCH] fix UUID related compile failure --- indexer/api/api_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/indexer/api/api_test.go b/indexer/api/api_test.go index 331c090bf9851..7aa5b959e8aec 100644 --- a/indexer/api/api_test.go +++ b/indexer/api/api_test.go @@ -5,6 +5,8 @@ import ( "net/http/httptest" "testing" + "github.com/google/uuid" + "github.com/ethereum-optimism/optimism/indexer/database" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/assert" @@ -18,7 +20,7 @@ func (mbv *MockBridgeView) DepositsByAddress(address common.Address) ([]*databas return []*database.DepositWithTransactionHash{ { Deposit: database.Deposit{ - GUID: "mockGUID1", + GUID: uuid.New(), InitiatedL1EventGUID: "mockEventGUID1", Tx: database.Transaction{}, TokenPair: database.TokenPair{}, @@ -33,7 +35,7 @@ func (mbv *MockBridgeView) WithdrawalsByAddress(address common.Address) ([]*data return []*database.WithdrawalWithTransactionHashes{ { Withdrawal: database.Withdrawal{ - GUID: "mockGUID2", + GUID: uuid.New(), InitiatedL2EventGUID: "mockEventGUID2", WithdrawalHash: common.HexToHash("0x456"), Tx: database.Transaction{},