From f55b327c5160139562352b844a1f276148ecec62 Mon Sep 17 00:00:00 2001 From: ericsson Date: Fri, 23 Apr 2021 18:47:25 +0300 Subject: [PATCH] fix typos in sharding --- specs/sharding/beacon-chain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index 3cd262ed6..a2427a2b1 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -280,7 +280,7 @@ class ShardProposerSlashing(Container): #### `next_power_of_two` ```python -def next_power_of_two(x): +def next_power_of_two(x: int) -> int: return 2 ** ((x - 1).bit_length()) ``` @@ -374,7 +374,7 @@ ensuring that the balance is always sufficient to cover gas costs. def compute_proposer_index(beacon_state: BeaconState, indices: Sequence[ValidatorIndex], seed: Bytes32, - min_effective_balance: GWei = GWei(0)) -> ValidatorIndex: + min_effective_balance: Gwei = Gwei(0)) -> ValidatorIndex: """ Return from ``indices`` a random index sampled by effective balance. """