Skip to content

Commit

Permalink
chore: apply a small cleanup in types (#6541)
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech authored Mar 13, 2024
1 parent 899f3b4 commit 15974b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions packages/types/src/capella/sszTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,7 @@ export const BlindedBeaconBlockBody = new ContainerType(

export const BlindedBeaconBlock = new ContainerType(
{
slot: Slot,
proposerIndex: ValidatorIndex,
// Reclare expandedType() with altair block and altair state
parentRoot: Root,
stateRoot: Root,
...bellatrixSsz.BlindedBeaconBlock.fields,
body: BlindedBeaconBlockBody, // Modified in capella
},
{typeName: "BlindedBeaconBlock", jsonCase: "eth2", cachePermanentRootStruct: true}
Expand Down
3 changes: 1 addition & 2 deletions packages/types/src/deneb/sszTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
FIELD_ELEMENTS_PER_BLOB,
MAX_REQUEST_BLOB_SIDECARS,
BYTES_PER_FIELD_ELEMENT,
BLOCK_BODY_EXECUTION_PAYLOAD_DEPTH as EXECUTION_PAYLOAD_DEPTH,
EPOCHS_PER_SYNC_COMMITTEE_PERIOD,
SLOTS_PER_EPOCH,
KZG_COMMITMENT_INCLUSION_PROOF_DEPTH,
Expand Down Expand Up @@ -242,7 +241,7 @@ export const LightClientHeader = new ContainerType(
{
beacon: phase0Ssz.BeaconBlockHeader,
execution: ExecutionPayloadHeader,
executionBranch: new VectorCompositeType(Bytes32, EXECUTION_PAYLOAD_DEPTH),
executionBranch: capellaSsz.LightClientHeader.fields.executionBranch,
},
{typeName: "LightClientHeader", jsonCase: "eth2"}
);
Expand Down

0 comments on commit 15974b5

Please sign in to comment.