Skip to content

Commit

Permalink
fix(plonky2): Make get balances input take all validators as default
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimo99 authored and PetarKirov committed Dec 11, 2023
1 parent 61cb8e2 commit a7aa82e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let TAKE;
alias: 'take',
describe: 'The number of validators to take',
type: 'number',
default: 1024,
default: Infinity,
description: 'Sets the number of validators to take',
}).argv;

Expand Down Expand Up @@ -86,6 +86,7 @@ let TAKE;
const { beaconState } = await beaconApi.getBeaconState(6953401);

const validators = beaconState.validators.slice(0, TAKE);
TAKE = validators.length;

beaconState.validators = validators;
beaconState.balances = beaconState.balances.slice(0, TAKE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let TAKE: number | undefined;
alias: 'take',
describe: 'The number of validators to take',
type: 'number',
default: undefined,
default: Infinity,
description: 'Sets the number of validators to take',
}).argv;

Expand Down

0 comments on commit a7aa82e

Please sign in to comment.