From ff185c348697c024f1ebc7e2706cd3b1717eec36 Mon Sep 17 00:00:00 2001 From: protolambda Date: Sat, 29 Jun 2019 20:40:25 +0200 Subject: [PATCH] fix deposit state mocking for tests --- test_libs/pyspec/eth2spec/test/helpers/deposits.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test_libs/pyspec/eth2spec/test/helpers/deposits.py b/test_libs/pyspec/eth2spec/test/helpers/deposits.py index 99c39211e..b46363e62 100644 --- a/test_libs/pyspec/eth2spec/test/helpers/deposits.py +++ b/test_libs/pyspec/eth2spec/test/helpers/deposits.py @@ -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