Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-wang-cb committed May 14, 2024
1 parent 4926e1c commit c687a5f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions op-e2e/brotli_batcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ func TestBrotliBatcherFjord(t *testing.T) {
seqStatus, err := rollupClient.SyncStatus(context.Background())
require.NoError(t, err)
require.LessOrEqual(t, seqBlock.NumberU64(), seqStatus.UnsafeL2.Number)
// basic check that version endpoint works
seqVersion, err := rollupClient.Version(context.Background())
require.NoError(t, err)
require.NotEqual(t, "", seqVersion)

// quick check that the batch submitter works
require.Eventually(t, func() bool {
Expand All @@ -129,13 +125,14 @@ func TestBrotliBatcherFjord(t *testing.T) {
require.NoError(t, err)
require.Equal(t, seqBlock.Hash(), receipt.BlockHash, "receipt block must match canonical block at tx inclusion height")

// find L1 block that contained the blob(s) batch tx
// find L1 block that contained the blob batch tx
tip, err := l1Client.HeaderByNumber(context.Background(), nil)
require.NoError(t, err)
_, err = gethutils.FindBlock(l1Client, int(tip.Number.Int64()), 0, 5*time.Second,
func(b *types.Block) (bool, error) {
// check that the transaction exists in the L1 block
// check that the blob transaction exists in the L1 block
require.Equal(t, b.Transactions().Len(), 1)
require.Equal(t, int(b.Transactions()[0].Type()), types.BlobTxType)
return true, nil
})
require.NoError(t, err)
Expand Down

0 comments on commit c687a5f

Please sign in to comment.