mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
nem: aggregate modification relative_change is int
This commit is contained in:
parent
b80a8022d0
commit
32681972f1
@ -16,7 +16,7 @@ class TestNemMultisigAggregateModification(unittest.TestCase):
|
||||
22000000,
|
||||
0,
|
||||
2,
|
||||
False)
|
||||
0)
|
||||
t = serialize_aggregate_modification(m, unhexlify("462ee976890916e54fa825d26bdd0235f5eb5b6a143c199ab0ae5ee9328e08ce"))
|
||||
|
||||
serialize_cosignatory_modification(t, 1, unhexlify(
|
||||
@ -33,7 +33,7 @@ class TestNemMultisigAggregateModification(unittest.TestCase):
|
||||
40000000,
|
||||
0,
|
||||
5,
|
||||
False)
|
||||
0)
|
||||
t = serialize_aggregate_modification(m, unhexlify("f41b99320549741c5cce42d9e4bb836d98c50ed5415d0c3c2912d1bb50e6a0e5"))
|
||||
|
||||
serialize_cosignatory_modification(t, 1, unhexlify(
|
||||
@ -57,7 +57,7 @@ class TestNemMultisigAggregateModification(unittest.TestCase):
|
||||
40000000,
|
||||
6545854,
|
||||
4,
|
||||
True)
|
||||
2)
|
||||
t = serialize_aggregate_modification(m, unhexlify("6bf7849c1eec6a2002995cc457dc00c4e29bad5c88de63f51e42dfdcd7b2131d"))
|
||||
|
||||
serialize_cosignatory_modification(t, 1, unhexlify(
|
||||
@ -75,7 +75,7 @@ class TestNemMultisigAggregateModification(unittest.TestCase):
|
||||
|
||||
|
||||
def _create_msg(network: int, timestamp: int, fee: int, deadline: int,
|
||||
modifications: int, relative_change: bool):
|
||||
modifications: int, relative_change: int):
|
||||
m = NEMSignTx()
|
||||
m.transaction = NEMTransactionCommon()
|
||||
m.transaction.network = network
|
||||
|
@ -17,7 +17,7 @@ class TestNemMultisig(unittest.TestCase):
|
||||
16000000,
|
||||
3960639,
|
||||
1,
|
||||
False)
|
||||
0)
|
||||
base_tx = serialize_aggregate_modification(m, unhexlify("abac2ee3d4aaa7a3bfb65261a00cc04c761521527dd3f2cf741e2815cbba83ac"))
|
||||
|
||||
base_tx = serialize_cosignatory_modification(base_tx, 2, unhexlify("e6cff9b3725a91f31089c3acca0fac3e341c00b1c8c6e9578f66c4514509c3b3"))
|
||||
@ -84,7 +84,7 @@ def _create_common_msg(network: int, timestamp: int, fee: int, deadline: int):
|
||||
|
||||
|
||||
def _create_msg(network: int, timestamp: int, fee: int, deadline: int,
|
||||
modifications: int, relative_change: bool):
|
||||
modifications: int, relative_change: int):
|
||||
m = NEMSignTx()
|
||||
m.transaction = _create_common_msg(network, timestamp, fee, deadline)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user