From 4067e0f25a0264ad51e7525bd386126a138868df Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Mon, 26 Nov 2018 21:43:59 +0800 Subject: [PATCH] fix --- specs/core/0_beacon-chain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 19668730b..dae7d4a51 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -796,7 +796,7 @@ def get_new_validators(current_validators: List[ValidatorRecord], index = min_empty_validator(current_validators) if index is None: new_validators.append(rec) - return new_validators, len(new_validators.validators) - 1, + return new_validators, len(new_validators.validators) - 1 else: new_validators[index] = rec return new_validators, index @@ -811,7 +811,7 @@ def add_validator(state: BeaconState, withdrawal_credentials: Hash32, randao_commitment: Hash32, status: int, - current_slot: int) -> index: + current_slot: int) -> int: state.validators, index = get_new_validators( current_validators=state.validators, pre_fork_version=state.pre_fork_version,