Add the prefix `state` when accessing the latest deposit count (#961)

This commit is contained in:
Alex Stokes 2019-04-18 00:43:22 -07:00 committed by Justin
parent 443786017f
commit 4bca7f984d
1 changed files with 1 additions and 1 deletions

View File

@ -2155,7 +2155,7 @@ def process_proposer_attestation_rewards(state: BeaconState) -> None:
##### Deposits
Verify that `len(block.body.deposits) == min(MAX_DEPOSITS, latest_eth1_data.deposit_count - state.deposit_index)`.
Verify that `len(block.body.deposits) == min(MAX_DEPOSITS, state.latest_eth1_data.deposit_count - state.deposit_index)`.
For each `deposit` in `block.body.deposits`, run the following function: