Skip to content

Commit

Permalink
Updating test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoccmartins committed Feb 4, 2025
1 parent bbcf0d1 commit 5088893
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion test/python/apps/aptos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/python/snapshots/flex/test_aptos_swap_valid_1/review/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions test/python/test_aptos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5088893

Please sign in to comment.