Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions op-node/rollup/derive/blob_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ func TestBlockWithFailedBlobTx(t *testing.T) {
// mark the first blob tx as failed
txSucceedMap := map[common.Hash]bool{txs[1].Hash(): true}
_, blobHashes := dataAndHashesFromTxs(txs, &config, batcherAddr, logger, txSucceedMap)
// check the returned blob index is 1
require.True(t, len(blobHashes) == 1 && blobHashes[0].Index == 1)
// check only the second tx's blob hash is returned (first tx was filtered out)
require.Equal(t, 1, len(blobHashes))
require.Equal(t, txs[1].BlobHashes()[0], blobHashes[0])
}

func TestFillBlobPointers(t *testing.T) {
Expand Down