fix deposit state mocking for tests

This commit is contained in:
protolambda 2019-06-29 20:40:25 +02:00
parent fb165dc14e
commit ff185c3486
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ def prepare_state_and_deposit(spec, state, validator_index, amount, withdrawal_c
signed,
)
state.eth1_deposit_index = 0
state.eth1_data.deposit_root = root
state.eth1_data.deposit_count = len(deposit_data_list)
return deposit