Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a typo in the comment (
tsgoinstead oftsc). Additionally, instead of hardcodingslot: 0, it is more accurate and robust to useblock.message.slotto match the slot of the block and envelope created in the test fixture.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declining both suggestions, but flagging the reasoning:
tsgovstsc—tsgois correct, not a typo. This repo uses@typescript/native-previewvia"check-types": "tsgo"inpackages/beacon-node/package.json:94, with@typescript/native-preview: 7.0.0-dev.20260303.1pinned in the rootpackage.json. The overload-resolution behavior that motivates this cast is specificallytsgo's —tscdoesn't reject this site.slot: 0vsblock.message.slot— keptslot: 0for consistency with every otheremitter.emit(ChainEvent.unknownEnvelopeBlockRoot, ...)site in this file (unknownBlock.test.ts:762,:836,:926,:1131). The field is a logging/prune hint per the emitter.ts comment (// slot is the message slot, not necessarily the envelope's slot, but useful as a logging/prune hint), not a correctness-load-bearing value in these tests, and switching just this one site would diverge from the established pattern. Happy to update all sites toblock.message.slotin a follow-up if you'd rather have semantic accuracy across the board.