Skip to content

Commit 6e2773f

Browse files
committed
fix missing chainID
1 parent a63ebab commit 6e2773f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/pkg/executionlayer/indexer.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ func (indexer *Indexer) IndexBlocks(chainID string, blocks []*types.Eth1Block) e
3333
}
3434

3535
func (indexer *Indexer) IndexBlock(chainID string, block *types.Eth1Block) error {
36-
var res IndexedBlock
36+
res := IndexedBlock{
37+
ChainID: chainID,
38+
}
3739
for _, transform := range indexer.transformers {
3840
err := transform(chainID, block, &res)
3941
if err != nil {

0 commit comments

Comments
 (0)