This commit is contained in:
Hsiao-Wei Wang 2023-01-12 21:57:05 +08:00
parent 75def3c88e
commit 9b3f8881b4
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4

View File

@ -229,7 +229,8 @@ def test_valid_signature_from_staking_deposit_cli(spec, state):
# Use mainnet `genesis_validators_root`
state.genesis_validators_root = bytes.fromhex('4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95')
state.validators[validator_index].withdrawal_credentials = spec.BLS_WITHDRAWAL_PREFIX + spec.hash(from_bls_pubkey)[1:]
validator = state.validators[validator_index]
validator.withdrawal_credentials = spec.BLS_WITHDRAWAL_PREFIX + spec.hash(from_bls_pubkey)[1:]
address_change = spec.BLSToExecutionChange(
validator_index=validator_index,