Skip to content

Commit fb36912

Browse files
authored
chore: update network chain id (#173)
1 parent f1ba5f6 commit fb36912

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crypto/networks/mainnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class Mainnet(AbstractNetwork):
44
def chain_id(self):
5-
return 10000
5+
return 11811
66

77
def epoch(self):
88
return '2017-03-21T13:00:00.000Z'

crypto/networks/testnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class Testnet(AbstractNetwork):
44
def chain_id(self):
5-
return 10000
5+
return 11812
66

77
def epoch(self):
88
return '2017-03-21T13:00:00.000Z'

tests/configuration/test_network.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ def chain_id(self):
1717

1818
def test_get_network():
1919
result = Network.get_network()
20-
assert result.chain_id() == 10000
20+
assert result.chain_id() == 11812
2121

2222
def test_set_network():
2323
# mainnet
2424
Network.set_network(Mainnet())
2525
result = Network.get_network()
2626
assert result.wif() == 'ba'
27-
assert result.chain_id() == 10000
27+
assert result.chain_id() == 11811
2828

2929
# testnet
3030
Network.set_network(Testnet())
3131
result = Network.get_network()
3232
assert result.wif() == 'ba'
33-
assert result.chain_id() == 10000
33+
assert result.chain_id() == 11812
3434

3535
Network.set_network(Testnet()) # set back to Testnet so other tests don't fail
3636

0 commit comments

Comments
 (0)