Skip to content

Commit dc842c1

Browse files
committed
Get rid of mypy ignores
1 parent abea333 commit dc842c1

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

eth/vm/forks/frontier/transactions.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@
3737

3838
class FrontierTransaction(BaseTransaction):
3939

40-
v_max = 28
41-
v_min = 27
40+
@property
41+
def v_min(self) -> int:
42+
return 27
43+
44+
@property
45+
def v_max(self) -> int:
46+
return 28
4247

4348
def validate(self) -> None:
4449
validate_uint256(self.nonce, title="Transaction.nonce")

eth/vm/forks/spurious_dragon/transactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ def chain_id(self) -> Optional[int]:
5959
return None
6060

6161
@property
62-
def v_min(self) -> int: # type: ignore
62+
def v_min(self) -> int:
6363
if is_eip_155_signed_transaction(self):
6464
return 35 + (2 * self.chain_id)
6565
else:
6666
return 27
6767

6868
@property
69-
def v_max(self) -> int: # type: ignore
69+
def v_max(self) -> int:
7070
if is_eip_155_signed_transaction(self):
7171
return 36 + (2 * self.chain_id)
7272
else:

0 commit comments

Comments
 (0)