Skip to content

Commit fa5b278

Browse files
committed
Adjust type of Blocknumber constants
1 parent 47490b5 commit fa5b278

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

eth/chains/mainnet/constants.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# Homestead Block
1212
#
13-
HOMESTEAD_MAINNET_BLOCK = 1150000
13+
HOMESTEAD_MAINNET_BLOCK = BlockNumber(1150000)
1414

1515

1616
#
@@ -24,16 +24,16 @@
2424
#
2525
# Tangerine Whistle Block
2626
#
27-
TANGERINE_WHISTLE_MAINNET_BLOCK = 2463000
27+
TANGERINE_WHISTLE_MAINNET_BLOCK = BlockNumber(2463000)
2828

2929

3030
#
3131
# Spurious Dragon Block
3232
#
33-
SPURIOUS_DRAGON_MAINNET_BLOCK = 2675000
33+
SPURIOUS_DRAGON_MAINNET_BLOCK = BlockNumber(2675000)
3434

3535

3636
#
3737
# Byzantium Block
3838
#
39-
BYZANTIUM_MAINNET_BLOCK = 4370000
39+
BYZANTIUM_MAINNET_BLOCK = BlockNumber(4370000)

eth/chains/ropsten/constants.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from eth_typing import BlockNumber
2+
3+
14
# https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md
25
ROPSTEN_CHAIN_ID = 3
36

@@ -6,34 +9,34 @@
69
#
710
# DAO Block
811
#
9-
DAO_FORK_ROPSTEN_BLOCK = 0
12+
DAO_FORK_ROPSTEN_BLOCK = BlockNumber(0)
1013

1114

1215
#
1316
# Tangerine Whistle Block
1417
#
15-
TANGERINE_WHISTLE_ROPSTEN_BLOCK = 0
18+
TANGERINE_WHISTLE_ROPSTEN_BLOCK = BlockNumber(0)
1619

1720

1821
#
1922
# Homestead Block
2023
#
21-
HOMESTEAD_ROPSTEN_BLOCK = 0
24+
HOMESTEAD_ROPSTEN_BLOCK = BlockNumber(0)
2225

2326

2427
#
2528
# Spurious Dragon Block
2629
#
27-
SPURIOUS_DRAGON_ROPSTEN_BLOCK = 10
30+
SPURIOUS_DRAGON_ROPSTEN_BLOCK = BlockNumber(10)
2831

2932

3033
#
3134
# Byzantium Block
3235
#
33-
BYZANTIUM_ROPSTEN_BLOCK = 1700000
36+
BYZANTIUM_ROPSTEN_BLOCK = BlockNumber(1700000)
3437

3538

3639
#
3740
# Constantinople
3841
#
39-
CONSTANTINOPLE_ROPSTEN_BLOCK = 4230000
42+
CONSTANTINOPLE_ROPSTEN_BLOCK = BlockNumber(4230000)

0 commit comments

Comments
 (0)