Skip to content

Commit f5c72af

Browse files
committed
chore: updates test stub to include txn receipts
1 parent a18f464 commit f5c72af

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

oracle/pkg/updater/updater_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@ func TestUpdater(t *testing.T) {
173173
blocks: map[int64]*types.Block{
174174
5: types.NewBlock(&types.Header{}, txns, nil, nil, NewHasher()),
175175
},
176+
receipts: make(map[string]*types.Receipt),
177+
}
178+
for _, txn := range txns {
179+
receipt := &types.Receipt{
180+
Status: types.ReceiptStatusSuccessful,
181+
TxHash: txn.Hash(),
182+
}
183+
l1Client.receipts[txn.Hash().Hex()] = receipt
176184
}
177185

178186
pcABI, err := abi.JSON(strings.NewReader(preconf.PreconfcommitmentstoreABI))
@@ -380,6 +388,14 @@ func TestUpdaterBundlesFailure(t *testing.T) {
380388
blocks: map[int64]*types.Block{
381389
5: types.NewBlock(&types.Header{}, txns, nil, nil, NewHasher()),
382390
},
391+
receipts: make(map[string]*types.Receipt),
392+
}
393+
for _, txn := range txns {
394+
receipt := &types.Receipt{
395+
Status: types.ReceiptStatusSuccessful,
396+
TxHash: txn.Hash(),
397+
}
398+
l1Client.receipts[txn.Hash().Hex()] = receipt
383399
}
384400

385401
oracle := &testOracle{

0 commit comments

Comments
 (0)