mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-24 08:18:14 +00:00
fix deposit negative index fail
This commit is contained in:
parent
6338c5b880
commit
f27c44b953
@ -183,7 +183,7 @@ def test_bad_merkle_proof(spec, state):
|
||||
deposit = prepare_state_and_deposit(spec, state, validator_index, amount)
|
||||
|
||||
# mess up merkle branch
|
||||
deposit.proof[-1] = spec.ZERO_HASH
|
||||
deposit.proof[5] = spec.ZERO_HASH
|
||||
|
||||
sign_deposit_data(spec, state, deposit.data, privkeys[validator_index])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user