Skip to content

Commit 8ba140c

Browse files
committed
fix error with genesis event being nil
1 parent 8820949 commit 8ba140c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rollup/da_syncer/da/calldata_blob_source.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (ds *CalldataBlobSource) getCommitBatchDA(commitEvents []*l1.CommitBatchEve
197197
}
198198

199199
if commitEvents[0].BatchIndex().Uint64() == 0 {
200-
return Entries{NewCommitBatchDAV0Empty()}, nil
200+
return Entries{NewCommitBatchDAV0Empty(commitEvents[0])}, nil
201201
}
202202

203203
firstCommitEvent := commitEvents[0]

rollup/da_syncer/da/commitV0.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ func NewCommitBatchDAV0WithChunks(db ethdb.Database,
6666
}, nil
6767
}
6868

69-
func NewCommitBatchDAV0Empty() *CommitBatchDAV0 {
69+
func NewCommitBatchDAV0Empty(event *l1.CommitBatchEvent) *CommitBatchDAV0 {
7070
return &CommitBatchDAV0{
7171
batchIndex: 0,
72+
event: event,
7273
}
7374
}
7475

0 commit comments

Comments
 (0)