Skip to content

Commit

Permalink
Update packages/beacon-node/src/api/impl/beacon/blocks/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nico Flaig <nflaig@protonmail.com>
  • Loading branch information
jeluard and nflaig authored Jan 25, 2024
1 parent 9347c92 commit e933acb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/beacon-node/src/api/impl/beacon/blocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,7 @@ export function getBeaconBlockApi({

return {
executionOptimistic,
// Return all sidecars if no indices are specified, only the requested ones (identified by `indices`) otherwise
data: indices.length == 0 ? blobSidecars : blobSidecars.filter(({index}) => indices.includes(index)),
data: indices ? blobSidecars.filter(({index}) => indices.includes(index)) : blobSidecars,
};
},
};
Expand Down

0 comments on commit e933acb

Please sign in to comment.