mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
chore(cardano): format test fixture files
This commit is contained in:
parent
28f0f60295
commit
500d29f43b
@ -7,7 +7,7 @@
|
||||
{
|
||||
"parameters": {
|
||||
"path": "m/44'/1815'/0'/0/0",
|
||||
"address_type":"byron",
|
||||
"address_type": "byron",
|
||||
"protocol_magic": 764824073,
|
||||
"network_id": 1
|
||||
},
|
||||
@ -16,7 +16,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters":{
|
||||
"parameters": {
|
||||
"path": "m/44'/1815'/0'/0/1",
|
||||
"address_type": "byron",
|
||||
"protocol_magic": 764824073,
|
||||
@ -49,7 +49,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters":{
|
||||
"parameters": {
|
||||
"path": "m/44'/1815'/0'/0/1",
|
||||
"address_type": "byron",
|
||||
"protocol_magic": 42,
|
||||
|
@ -11,11 +11,11 @@
|
||||
{
|
||||
"parameters": {
|
||||
"path": "m/44'/1815'/0'/0/0",
|
||||
"address_type":"byron",
|
||||
"address_type": "byron",
|
||||
"protocol_magic": 764824073,
|
||||
"network_id":1
|
||||
"network_id": 1
|
||||
},
|
||||
"result":{
|
||||
"result": {
|
||||
"expected_address": "Ae2tdPwUPEYxF9NAMNdd3v2LZoMeWp7gCZiDb6bZzFQeeVASzoP7HC4V9s6"
|
||||
}
|
||||
},
|
||||
|
@ -7,7 +7,7 @@
|
||||
{
|
||||
"parameters": {
|
||||
"path": "m/1852'/1815'/4'/0/0",
|
||||
"address_type":"base",
|
||||
"address_type": "base",
|
||||
"staking_key_hash": "1bc428e4720702ebd5dab4fb175324c192dc9bb76cc5da956e3c8dff",
|
||||
"network_id": 1,
|
||||
"protocol_magic": 764824073
|
||||
|
@ -5,10 +5,10 @@
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"parameters":{
|
||||
"parameters": {
|
||||
"path": "m/44'/1815'/0'"
|
||||
},
|
||||
"result":{
|
||||
"result": {
|
||||
"public_key": "c0fce1839f1a84c4e770293ac2f5e0875141b29017b7f56ab135352d00ad6966",
|
||||
"chain_code": "07faa161c9f5464315d2855f70fdf1431d5fa39eb838767bf17b69772137452f"
|
||||
}
|
||||
|
3
common/tests/fixtures/cardano/sign_tx.json
vendored
3
common/tests/fixtures/cardano/sign_tx.json
vendored
@ -1178,7 +1178,8 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
{"description": "transaction with everything set except pool registration certificate",
|
||||
{
|
||||
"description": "transaction with everything set except pool registration certificate",
|
||||
"parameters": {
|
||||
"protocol_magic": 764824073,
|
||||
"network_id": 1,
|
||||
|
@ -34,7 +34,7 @@ pytestmark = [
|
||||
"cardano/sign_tx.slip39.json",
|
||||
)
|
||||
def test_cardano_sign_tx(client, parameters, result):
|
||||
signing_mode = cardano.SIGNING_MODE_IDS[parameters["signing_mode"]]
|
||||
signing_mode = messages.CardanoTxSigningMode.__members__[parameters["signing_mode"]]
|
||||
inputs = [cardano.parse_input(i) for i in parameters["inputs"]]
|
||||
outputs = [cardano.parse_output(o) for o in parameters["outputs"]]
|
||||
certificates = [cardano.parse_certificate(c) for c in parameters["certificates"]]
|
||||
@ -70,7 +70,7 @@ def test_cardano_sign_tx(client, parameters, result):
|
||||
"cardano/sign_tx.failed.json", "cardano/sign_tx_stake_pool_registration.failed.json"
|
||||
)
|
||||
def test_cardano_sign_tx_failed(client, parameters, result):
|
||||
signing_mode = cardano.SIGNING_MODE_IDS[parameters["signing_mode"]]
|
||||
signing_mode = messages.CardanoTxSigningMode.__members__[parameters["signing_mode"]]
|
||||
inputs = [cardano.parse_input(i) for i in parameters["inputs"]]
|
||||
outputs = [cardano.parse_output(o) for o in parameters["outputs"]]
|
||||
certificates = [cardano.parse_certificate(c) for c in parameters["certificates"]]
|
||||
|
Loading…
Reference in New Issue
Block a user