Skip to content

Commit

Permalink
Fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Mar 28, 2024
1 parent 2566732 commit 24353b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/chain/forkChoice/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function initializeForkChoice(
},
currentSlot
),
opts,
logger,
opts
);
}
4 changes: 2 additions & 2 deletions packages/fork-choice/src/forkChoice/forkChoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export class ForkChoice implements IForkChoice {
private readonly fcStore: IForkChoiceStore,
/** The underlying representation of the block DAG. */
private readonly protoArray: ProtoArray,
private readonly logger?: Logger,
private readonly opts?: ForkChoiceOpts
private readonly opts?: ForkChoiceOpts,
private readonly logger?: Logger
) {
this.head = this.updateHead();
this.balances = this.fcStore.justified.balances;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ describe("Forkchoice / GetProposerHead", function () {
currentSlot,
});

const forkChoice = new ForkChoice(config, fcStore, protoArr, undefined, {
const forkChoice = new ForkChoice(config, fcStore, protoArr, {
proposerBoostEnabled: true,
// proposerBoostReorgEnabled: true,
});
Expand Down
1 change: 0 additions & 1 deletion packages/state-transition/src/util/execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export function isExecutionPayload(
payload: allForks.FullOrBlindedExecutionPayload
): payload is allForks.ExecutionPayload {
return (payload as allForks.ExecutionPayload).transactions !== undefined;

}

export function isCapellaPayload(
Expand Down

0 comments on commit 24353b6

Please sign in to comment.