mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-18 10:32:02 +00:00
tests/device/nem: constants used
This commit is contained in:
parent
8d296ed4c1
commit
c4dc6e2c93
@ -19,6 +19,8 @@ from .common import *
|
|||||||
|
|
||||||
from trezorlib import messages as proto
|
from trezorlib import messages as proto
|
||||||
|
|
||||||
|
NEM_TRANSACTION_TYPE_TRANSFER = 0x0101
|
||||||
|
|
||||||
|
|
||||||
# assertion data from T1
|
# assertion data from T1
|
||||||
@pytest.mark.skip_t2
|
@pytest.mark.skip_t2
|
||||||
@ -48,7 +50,7 @@ class TestMsgNEMSigntx(TrezorTest):
|
|||||||
"amount": 2000000,
|
"amount": 2000000,
|
||||||
"fee": 2000000,
|
"fee": 2000000,
|
||||||
"recipient": "TALICE2GMA34CXHD7XLJQ536NM5UNKQHTORNNT2J",
|
"recipient": "TALICE2GMA34CXHD7XLJQ536NM5UNKQHTORNNT2J",
|
||||||
"type": 257,
|
"type": NEM_TRANSACTION_TYPE_TRANSFER,
|
||||||
"deadline": 74735615,
|
"deadline": 74735615,
|
||||||
"message": {
|
"message": {
|
||||||
"payload": hexlify(b"test_nem_transaction_transfer"),
|
"payload": hexlify(b"test_nem_transaction_transfer"),
|
||||||
@ -79,7 +81,7 @@ class TestMsgNEMSigntx(TrezorTest):
|
|||||||
"amount": 2000000,
|
"amount": 2000000,
|
||||||
"fee": 2000000,
|
"fee": 2000000,
|
||||||
"recipient": "TALICE2GMA34CXHD7XLJQ536NM5UNKQHTORNNT2J",
|
"recipient": "TALICE2GMA34CXHD7XLJQ536NM5UNKQHTORNNT2J",
|
||||||
"type": 257,
|
"type": NEM_TRANSACTION_TYPE_TRANSFER,
|
||||||
"deadline": 74735615,
|
"deadline": 74735615,
|
||||||
"message": {
|
"message": {
|
||||||
# plain text is 32B long => cipher text is 48B
|
# plain text is 32B long => cipher text is 48B
|
||||||
@ -119,7 +121,7 @@ class TestMsgNEMSigntx(TrezorTest):
|
|||||||
"amount": 1000000,
|
"amount": 1000000,
|
||||||
"fee": 1000000,
|
"fee": 1000000,
|
||||||
"recipient": "TALICE2GMA34CXHD7XLJQ536NM5UNKQHTORNNT2J",
|
"recipient": "TALICE2GMA34CXHD7XLJQ536NM5UNKQHTORNNT2J",
|
||||||
"type": 257,
|
"type": NEM_TRANSACTION_TYPE_TRANSFER,
|
||||||
"deadline": 76895615,
|
"deadline": 76895615,
|
||||||
"version": (0x98 << 24),
|
"version": (0x98 << 24),
|
||||||
"message": {
|
"message": {
|
||||||
|
Loading…
Reference in New Issue
Block a user