Skip to content

Commit 188b133

Browse files
Apply suggestions from code review
Co-Authored-By: ChihChengLiang <[email protected]>
1 parent 56ea2f4 commit 188b133

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

eth/beacon/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def get_block_committees_info(parent_block: 'BaseBeaconBlock',
296296

297297
def get_beacon_proposer_index(state: 'BeaconState',
298298
slot: SlotNumber,
299-
epoch_length: int) -> int:
299+
epoch_length: int) -> ValidatorIndex:
300300
"""
301301
Return the beacon proposer index for the ``slot``.
302302
"""

eth/beacon/types/proposer_slashings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ProposerSlashing(rlp.Serializable):
2828
]
2929

3030
def __init__(self,
31-
proposer_index: int,
31+
proposer_index: ValidatorIndex,
3232
proposal_data_1: ProposalSignedData,
3333
proposal_data_2: ProposalSignedData,
3434
# default arguments follow non-default arguments

eth/beacon/types/validator_records.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self,
4848
pubkey: BLSPubkey,
4949
withdrawal_credentials: Hash32,
5050
randao_commitment: Hash32,
51-
randao_layers: SlotNumber,
51+
randao_layers: int,
5252
status: ValidatorStatusCode,
5353
latest_status_change_slot: SlotNumber,
5454
exit_count: int) -> None:
@@ -82,7 +82,7 @@ def get_pending_validator(cls,
8282
pubkey=pubkey,
8383
withdrawal_credentials=withdrawal_credentials,
8484
randao_commitment=randao_commitment,
85-
randao_layers=SlotNumber(0),
85+
randao_layers=0,
8686
status=ValidatorStatusCode.PENDING_ACTIVATION,
8787
latest_status_change_slot=latest_status_change_slot,
8888
exit_count=0,

0 commit comments

Comments
 (0)