@@ -10,6 +10,7 @@ import (
1010
1111 "github.com/ethereum-optimism/optimism/op-challenger/game/fault/contracts"
1212 keccakTypes "github.com/ethereum-optimism/optimism/op-challenger/game/keccak/types"
13+ optypes "github.com/ethereum-optimism/optimism/op-core/types"
1314 "github.com/ethereum-optimism/optimism/op-service/eth"
1415 "github.com/ethereum-optimism/optimism/op-service/sources/batching/rpcblock"
1516 "github.com/ethereum-optimism/optimism/op-service/testlog"
@@ -287,7 +288,7 @@ func setupFetcherTest(t *testing.T) (*InputFetcher, *stubOracle, *stubL1Source)
287288 }
288289 l1Source := & stubL1Source {
289290 blocks : make (map [uint64 ]common.Hash ),
290- rcpts : make (map [common.Hash ]types .Receipts ),
291+ rcpts : make (map [common.Hash ]optypes .Receipts ),
291292 txs : make (map [uint64 ]types.Transactions ),
292293 rcptStatus : make (map [common.Hash ]uint64 ),
293294 logs : make (map [common.Hash ][]* types.Log ),
@@ -358,7 +359,7 @@ type stubL1Source struct {
358359 // Map block number to block hash
359360 blocks map [uint64 ]common.Hash
360361 // Map block hash to receipts
361- rcpts map [common.Hash ]types .Receipts
362+ rcpts map [common.Hash ]optypes .Receipts
362363 // Map block number to tx
363364 txs map [uint64 ]types.Transactions
364365 // Map txHash to receipt
@@ -378,7 +379,7 @@ func (s *stubL1Source) BlockRefByNumber(_ context.Context, num uint64) (eth.Bloc
378379 }, nil
379380}
380381
381- func (s * stubL1Source ) FetchReceipts (_ context.Context , blockHash common.Hash ) (eth.BlockInfo , types .Receipts , error ) {
382+ func (s * stubL1Source ) FetchReceipts (_ context.Context , blockHash common.Hash ) (eth.BlockInfo , optypes .Receipts , error ) {
382383 rcpts , ok := s .rcpts [blockHash ]
383384 if ! ok {
384385 return nil , nil , errors .New ("not found" )
@@ -392,7 +393,7 @@ func uint64ToHash(num uint64) common.Hash {
392393 return crypto .Keccak256Hash (data )
393394}
394395
395- func (s * stubL1Source ) createReceipt (blockNum uint64 , status uint64 , proposals ... * proposalConfig ) * types .Receipt {
396+ func (s * stubL1Source ) createReceipt (blockNum uint64 , status uint64 , proposals ... * proposalConfig ) * optypes .Receipt {
396397 // Make the block exist
397398 s .blocks [blockNum ] = uint64ToHash (blockNum )
398399
@@ -420,7 +421,7 @@ func (s *stubL1Source) createReceipt(blockNum uint64, status uint64, proposals .
420421 }
421422 logs [i ] = txLog
422423 }
423- rcpt := & types.Receipt {TxHash : uint64ToHash (txId ), Status : status , Logs : logs }
424+ rcpt := & optypes. Receipt { Receipt : types.Receipt {TxHash : uint64ToHash (txId ), Status : status , Logs : logs } }
424425 blockHash := s .blocks [blockNum ]
425426 rcpts := s .rcpts [blockHash ]
426427 s .rcpts [blockHash ] = append (rcpts , rcpt )
0 commit comments