Skip to content

Commit 20c89ab

Browse files
fix type checking and proposer_slashings inputs
1 parent 84bf9c5 commit 20c89ab

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

eth/beacon/helpers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
)
4444
import functools
4545

46+
from eth.beacon.typing import (
47+
ShardNumber,
48+
BLSPubkey,
49+
)
4650

4751
if TYPE_CHECKING:
4852
from eth.beacon.types.attestation_data import AttestationData # noqa: F401
@@ -51,10 +55,6 @@
5155
from eth.beacon.types.fork_data import ForkData # noqa: F401
5256
from eth.beacon.types.slashable_vote_data import SlashableVoteData # noqa: F401
5357
from eth.beacon.types.validator_records import ValidatorRecord # noqa: F401
54-
from eth.beacon.typing import (
55-
ShardNumber,
56-
BLSPubkey,
57-
)
5858

5959

6060
def _get_element_from_recent_list(

eth/beacon/types/proposer_slashings.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def __init__(self,
3535
proposal_signature_1: BLSSignatureAggregated = EMPTY_SIGNATURE,
3636
proposal_signature_2: BLSSignatureAggregated = EMPTY_SIGNATURE) -> None:
3737
super().__init__(
38-
proposer_index,
39-
proposal_data_1,
40-
proposal_data_2,
41-
proposal_signature_1,
42-
proposal_signature_2,
38+
proposer_index=proposer_index,
39+
proposal_data_1=proposal_data_1,
40+
proposal_data_2=proposal_data_2,
41+
proposal_signature_1=proposal_signature_1,
42+
proposal_signature_2=proposal_signature_2,
4343
)

0 commit comments

Comments
 (0)