Skip to content

Commit f2ea28e

Browse files
Apply suggestions from code review: Add ValidatorRegistryDeltaFlag
Co-Authored-By: ChihChengLiang <[email protected]>
1 parent 2f0f2e6 commit f2ea28e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eth/beacon/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def get_effective_balance(
385385
def get_new_validator_registry_delta_chain_tip(current_validator_registry_delta_chain_tip: Hash32,
386386
validator_index: ValidatorIndex,
387387
pubkey: BLSPubkey,
388-
flag: int) -> Hash32:
388+
flag: ValidatorRegistryDeltaFlag) -> Hash32:
389389
"""
390390
Compute the next hash in the validator registry delta hash chain.
391391
"""

eth/beacon/types/validator_registry_delta_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self,
3333
latest_registry_delta_root: Hash32,
3434
validator_index: ValidatorIndex,
3535
pubkey: BLSPubkey,
36-
flag: int) -> None:
36+
flag: ValidatorRegistryDeltaFlag) -> None:
3737
super().__init__(
3838
latest_registry_delta_root=latest_registry_delta_root,
3939
validator_index=validator_index,

0 commit comments

Comments
 (0)