Commit 515ca99b authored by Roberto Bayardo's avatar Roberto Bayardo

fix UUID related compile failure

parent 65ec61dd
...@@ -5,6 +5,8 @@ import ( ...@@ -5,6 +5,8 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/google/uuid"
"github.com/ethereum-optimism/optimism/indexer/database" "github.com/ethereum-optimism/optimism/indexer/database"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
...@@ -18,7 +20,7 @@ func (mbv *MockBridgeView) DepositsByAddress(address common.Address) ([]*databas ...@@ -18,7 +20,7 @@ func (mbv *MockBridgeView) DepositsByAddress(address common.Address) ([]*databas
return []*database.DepositWithTransactionHash{ return []*database.DepositWithTransactionHash{
{ {
Deposit: database.Deposit{ Deposit: database.Deposit{
GUID: "mockGUID1", GUID: uuid.New(),
InitiatedL1EventGUID: "mockEventGUID1", InitiatedL1EventGUID: "mockEventGUID1",
Tx: database.Transaction{}, Tx: database.Transaction{},
TokenPair: database.TokenPair{}, TokenPair: database.TokenPair{},
...@@ -33,7 +35,7 @@ func (mbv *MockBridgeView) WithdrawalsByAddress(address common.Address) ([]*data ...@@ -33,7 +35,7 @@ func (mbv *MockBridgeView) WithdrawalsByAddress(address common.Address) ([]*data
return []*database.WithdrawalWithTransactionHashes{ return []*database.WithdrawalWithTransactionHashes{
{ {
Withdrawal: database.Withdrawal{ Withdrawal: database.Withdrawal{
GUID: "mockGUID2", GUID: uuid.New(),
InitiatedL2EventGUID: "mockEventGUID2", InitiatedL2EventGUID: "mockEventGUID2",
WithdrawalHash: common.HexToHash("0x456"), WithdrawalHash: common.HexToHash("0x456"),
Tx: database.Transaction{}, Tx: database.Transaction{},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment