diff --git a/test/python/apps/aptos.py b/test/python/apps/aptos.py index a4cbf469..f9a4c453 100644 --- a/test/python/apps/aptos.py +++ b/test/python/apps/aptos.py @@ -61,7 +61,8 @@ def __init__(self, backend) -> None: def sign_tx(self, path: str, transaction: bytes) -> List[RAPDU]: apdus = [] # TODO: for some reason, this is stalling the function - packed_path = pack_derivation_path(path) + #packed_path = pack_derivation_path(path) + packed_path = APTOS_PACKED_DERIVATION_PATH apdus.append(self.backend.exchange(cla=CLA, ins=InsType.SIGN_TX, p1=P1.P1_START, diff --git a/test/python/snapshots/flex/test_aptos_swap_valid_1/post_sign/00000.png b/test/python/snapshots/flex/test_aptos_swap_valid_1/post_sign/00000.png new file mode 100644 index 00000000..be51a9d5 Binary files /dev/null and b/test/python/snapshots/flex/test_aptos_swap_valid_1/post_sign/00000.png differ diff --git a/test/python/snapshots/flex/test_aptos_swap_valid_1/post_sign/00001.png b/test/python/snapshots/flex/test_aptos_swap_valid_1/post_sign/00001.png new file mode 100644 index 00000000..5d892c4d Binary files /dev/null and b/test/python/snapshots/flex/test_aptos_swap_valid_1/post_sign/00001.png differ diff --git a/test/python/snapshots/flex/test_aptos_swap_valid_1/review/00001.png b/test/python/snapshots/flex/test_aptos_swap_valid_1/review/00001.png index 0bbccb49..db64a171 100644 Binary files a/test/python/snapshots/flex/test_aptos_swap_valid_1/review/00001.png and b/test/python/snapshots/flex/test_aptos_swap_valid_1/review/00001.png differ diff --git a/test/python/test_aptos.py b/test/python/test_aptos.py index 9f72a260..88a0415b 100644 --- a/test/python/test_aptos.py +++ b/test/python/test_aptos.py @@ -14,7 +14,7 @@ class AptosTests(ExchangeTestRunner): valid_destination_memo_2 = "" valid_refund = "0x8F13F355F3AF444BD356ADEAAAF01235A7817D6A4417F5C9FA3D74A68F7B7AFD" valid_refund_memo = "" - valid_send_amount_1 = 1000000 + valid_send_amount_1 = 42 valid_send_amount_2 = 446739662 valid_fees_1 = 0 valid_fees_2 = 1 @@ -23,10 +23,9 @@ class AptosTests(ExchangeTestRunner): fake_payout = "abcdabcd" fake_payout_memo = "1" def perform_final_tx(self, destination, send_amount, fees, memo): - print("----------------------perform_final_tx----------------------") if destination != self.valid_destination_1 or destination == self.valid_destination_2: assert False - transaction = bytes.fromhex("b5e97db07fa0bd0e5598aa3643a9bc6f6693bddc1a9fec9e674a461eaa00b193094c6fc0d3b382a599c37e1aaa7618eff2c96a3586876082c4594c50c50d7dde1b000000000000000200000000000000000000000000000000000000000000000000000000000000010d6170746f735f6163636f756e74087472616e736665720002203835075df1bf469c336eabed8ac87052ee4485f3ec93380a5382fbf76b7a33070840420f000000000006000000000000006400000000000000c39aa4640000000002") + transaction = bytes.fromhex("b5e97db07fa0bd0e5598aa3643a9bc6f6693bddc1a9fec9e674a461eaa00b193783135e8b00430253a22ba041d860c373d7a1501ccf7ac2d1ad37a8ed2775aee000000000000000002000000000000000000000000000000000000000000000000000000000000000104636f696e087472616e73666572010700000000000000000000000000000000000000000000000000000000000000010a6170746f735f636f696e094170746f73436f696e000220544e62745a53706b6e61517643376a50434c55347a6e4a4d676d386668754700082a00000000000000204e0000000000006400000000000000565c51630000000022") AptosCommandSender(self.backend).sign_tx(path="m/44'/637'/0''",transaction=transaction) # Use a class to reuse the same Speculos instance