Skip to content

Commit

Permalink
fix(cardano): update testnet protocol magic
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmisiak committed Mar 11, 2022
1 parent c860396 commit f6aa620
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/apps/cardano/helpers/protocol_magics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MAINNET = 764824073
TESTNET = 42
TESTNET = 1097911063

NAMES = {
MAINNET: "Mainnet",
Expand Down
6 changes: 3 additions & 3 deletions core/tests/test_apps.cardano.address.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ def test_slip39_256(self):

def test_testnet_byron_address(self):
addresses = [
"2657WMsDfac5F3zbgs9BwNWx3dhGAJERkAL93gPa68NJ2i8mbCHm2pLUHWSj8Mfea",
"2657WMsDfac6ezKWszxLFqJjSUgpg9NgxKc1koqi24sVpRaPhiwMaExk4useKn5HA",
"2657WMsDfac7hr1ioJGr6g7r6JRx4r1My8Rj91tcPTeVjJDpfBYKURrPG2zVLx2Sq",
"2cWKMJemoBajmHz9haobccjHnxiynESe2hqtza25GBgHpKAtE8BpvUgd3ixRzrAvMjgfo",
"2cWKMJemoBakg9bfV8iHwNxF4TtoJVUsFMGZPJ2e1xnLLZ12WTcvYbTZg2eeXMBZmkrA1",
"2cWKMJemoBakYYADj3dviYVXQhzHxdDEHdsnkJfSYevd3wZi8eneSzEGRmXNvNDjYdjBw",
]

for i, expected in enumerate(addresses):
Expand Down
2 changes: 1 addition & 1 deletion python/src/trezorlib/cardano.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from .client import TrezorClient
from .protobuf import MessageType

PROTOCOL_MAGICS = {"mainnet": 764824073, "testnet": 42}
PROTOCOL_MAGICS = {"mainnet": 764824073, "testnet": 1097911063}
NETWORK_IDS = {"mainnet": 1, "testnet": 0}

REQUIRED_FIELDS_TRANSACTION = ("inputs", "outputs")
Expand Down

0 comments on commit f6aa620

Please sign in to comment.