From c4dc6e2c93aedfd053ff60afe3d86a7bddd4daf8 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Tue, 27 Mar 2018 16:06:49 +0200 Subject: [PATCH] tests/device/nem: constants used --- trezorlib/tests/device_tests/test_msg_nem_signtx.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/trezorlib/tests/device_tests/test_msg_nem_signtx.py b/trezorlib/tests/device_tests/test_msg_nem_signtx.py index cec01124d0..125c504ba6 100644 --- a/trezorlib/tests/device_tests/test_msg_nem_signtx.py +++ b/trezorlib/tests/device_tests/test_msg_nem_signtx.py @@ -19,6 +19,8 @@ from .common import * from trezorlib import messages as proto +NEM_TRANSACTION_TYPE_TRANSFER = 0x0101 + # assertion data from T1 @pytest.mark.skip_t2 @@ -48,7 +50,7 @@ class TestMsgNEMSigntx(TrezorTest): "amount": 2000000, "fee": 2000000, "recipient": "TALICE2GMA34CXHD7XLJQ536NM5UNKQHTORNNT2J", - "type": 257, + "type": NEM_TRANSACTION_TYPE_TRANSFER, "deadline": 74735615, "message": { "payload": hexlify(b"test_nem_transaction_transfer"), @@ -79,7 +81,7 @@ class TestMsgNEMSigntx(TrezorTest): "amount": 2000000, "fee": 2000000, "recipient": "TALICE2GMA34CXHD7XLJQ536NM5UNKQHTORNNT2J", - "type": 257, + "type": NEM_TRANSACTION_TYPE_TRANSFER, "deadline": 74735615, "message": { # plain text is 32B long => cipher text is 48B @@ -119,7 +121,7 @@ class TestMsgNEMSigntx(TrezorTest): "amount": 1000000, "fee": 1000000, "recipient": "TALICE2GMA34CXHD7XLJQ536NM5UNKQHTORNNT2J", - "type": 257, + "type": NEM_TRANSACTION_TYPE_TRANSFER, "deadline": 76895615, "version": (0x98 << 24), "message": {