keep representations consistent for tests

This commit is contained in:
Dustin Brody 2020-08-04 20:52:37 +02:00 committed by zah
parent e8c31e4ce8
commit 8618cbdf38
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ func decrease_balance*(
state.balances[index] - delta
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.2/specs/phase0/beacon-chain.md#deposits
proc get_validator_from_deposit(state: BeaconState, deposit: Deposit):
func get_validator_from_deposit(state: BeaconState, deposit: Deposit):
Validator =
let
amount = deposit.data.amount
@ -58,7 +58,7 @@ proc get_validator_from_deposit(state: BeaconState, deposit: Deposit):
amount - amount mod EFFECTIVE_BALANCE_INCREMENT, MAX_EFFECTIVE_BALANCE)
Validator(
pubkey: deposit.data.pubkey.initPubKey,
pubkey: deposit.data.pubkey,
withdrawal_credentials: deposit.data.withdrawal_credentials,
activation_eligibility_epoch: FAR_FUTURE_EPOCH,
activation_epoch: FAR_FUTURE_EPOCH,