Skip to content

Commit

Permalink
chore: remove uneeded type
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Feb 1, 2024
1 parent 456827f commit 8d88f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/state-transition/src/util/sszBytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ export const VALIDATOR_BYTES_SIZE = 121;
*/
const SLOT_BYTES_POSITION_IN_STATE = 40;

export function getForkFromStateBytes(config: ChainForkConfig, bytes: Buffer | Uint8Array): ForkSeq {
export function getForkFromStateBytes(config: ChainForkConfig, bytes: Uint8Array): ForkSeq {
const slot = bytesToInt(bytes.subarray(SLOT_BYTES_POSITION_IN_STATE, SLOT_BYTES_POSITION_IN_STATE + SLOT_BYTE_COUNT));
return config.getForkSeq(slot);
}

export function getStateTypeFromBytes(
config: ChainForkConfig,
bytes: Buffer | Uint8Array
bytes: Uint8Array
): allForks.AllForksSSZTypes["BeaconState"] {
const slot = getStateSlotFromBytes(bytes);
return config.getForkTypes(slot).BeaconState;
Expand Down

0 comments on commit 8d88f43

Please sign in to comment.