mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
fix(cardano): update testnet protocol magic
This commit is contained in:
parent
962f689e8a
commit
117c3c932f
@ -1,5 +1,5 @@
|
||||
MAINNET = 764824073
|
||||
TESTNET = 42
|
||||
TESTNET = 1097911063
|
||||
|
||||
NAMES = {
|
||||
MAINNET: "Mainnet",
|
||||
|
@ -279,9 +279,9 @@ class TestCardanoAddress(unittest.TestCase):
|
||||
|
||||
def test_testnet_byron_address(self):
|
||||
addresses = [
|
||||
"2657WMsDfac5F3zbgs9BwNWx3dhGAJERkAL93gPa68NJ2i8mbCHm2pLUHWSj8Mfea",
|
||||
"2657WMsDfac6ezKWszxLFqJjSUgpg9NgxKc1koqi24sVpRaPhiwMaExk4useKn5HA",
|
||||
"2657WMsDfac7hr1ioJGr6g7r6JRx4r1My8Rj91tcPTeVjJDpfBYKURrPG2zVLx2Sq",
|
||||
"2cWKMJemoBajmHz9haobccjHnxiynESe2hqtza25GBgHpKAtE8BpvUgd3ixRzrAvMjgfo",
|
||||
"2cWKMJemoBakg9bfV8iHwNxF4TtoJVUsFMGZPJ2e1xnLLZ12WTcvYbTZg2eeXMBZmkrA1",
|
||||
"2cWKMJemoBakYYADj3dviYVXQhzHxdDEHdsnkJfSYevd3wZi8eneSzEGRmXNvNDjYdjBw",
|
||||
]
|
||||
|
||||
for i, expected in enumerate(addresses):
|
||||
|
@ -36,7 +36,7 @@ if TYPE_CHECKING:
|
||||
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")
|
||||
|
Loading…
Reference in New Issue
Block a user