Skip to content

Commit

Permalink
Merge pull request #283 from LedgerHQ/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
tdejoigny-ledger authored Jul 19, 2024
2 parents c9c57cb + b7c6323 commit bda537e
Show file tree
Hide file tree
Showing 62 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions tests/ragger_bitcoin/ragger_instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ def navigate_end_of_flow(self, save_screenshot=True):
save_screenshot=save_screenshot)

def review_start(self, output_count: int = 1, save_screenshot=True):
self.new_request("Review", NavInsID.USE_CASE_REVIEW_TAP, NavInsID.USE_CASE_REVIEW_TAP,
self.new_request("Review", NavInsID.SWIPE_CENTER_TO_LEFT, NavInsID.SWIPE_CENTER_TO_LEFT,
save_screenshot=save_screenshot)
for _ in range(0, output_count):
self.same_request("Amount", NavInsID.USE_CASE_REVIEW_TAP, NavInsID.USE_CASE_REVIEW_TAP,
self.same_request("Amount", NavInsID.SWIPE_CENTER_TO_LEFT, NavInsID.SWIPE_CENTER_TO_LEFT,
save_screenshot=save_screenshot)
def review_fees(self, fees_on_same_request: bool = True, save_screenshot=True):
if fees_on_same_request:
self.same_request("Fees", NavInsID.USE_CASE_REVIEW_TAP, NavInsID.USE_CASE_REVIEW_TAP,
self.same_request("Fees", NavInsID.SWIPE_CENTER_TO_LEFT, NavInsID.SWIPE_CENTER_TO_LEFT,
save_screenshot=save_screenshot)
else:
self.new_request("Fees", NavInsID.USE_CASE_REVIEW_TAP, NavInsID.USE_CASE_REVIEW_TAP,
self.new_request("Fees", NavInsID.SWIPE_CENTER_TO_LEFT, NavInsID.SWIPE_CENTER_TO_LEFT,
save_screenshot=save_screenshot)

def confirm_transaction(self, save_screenshot=True):
Expand All @@ -64,9 +64,9 @@ def confirm_transaction(self, save_screenshot=True):
save_screenshot=save_screenshot)

def confirm_message(self, save_screenshot=True):
self.new_request("Sign", NavInsID.USE_CASE_REVIEW_TAP,
self.new_request("Sign", NavInsID.SWIPE_CENTER_TO_LEFT,
NavInsID.USE_CASE_REVIEW_CONFIRM, save_screenshot=save_screenshot)
self.new_request("Message", NavInsID.USE_CASE_REVIEW_TAP,
self.new_request("Message", NavInsID.SWIPE_CENTER_TO_LEFT,
NavInsID.USE_CASE_STATUS_DISMISS, save_screenshot=save_screenshot)

def confirm_wallet(self, save_screenshot=True):
Expand All @@ -88,7 +88,7 @@ def warning_accept(self, save_screenshot=True):
save_screenshot=save_screenshot)

def address_confirm(self, save_screenshot=True):
self.new_request("Confirm", NavInsID.USE_CASE_REVIEW_TAP,
self.new_request("Confirm", NavInsID.SWIPE_CENTER_TO_LEFT,
NavInsID.USE_CASE_ADDRESS_CONFIRMATION_CONFIRM,
save_screenshot=save_screenshot)

Expand Down
Binary file modified tests/snapshots/stax/test_get_public_key_m/44'/1'/0'_0_0/00000.png
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 tests/snapshots/stax/test_get_public_key_m/44'/1'/0'_0_1/00001.png
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 tests/snapshots/stax/test_get_public_key_m/44'/1'/0'_0_1/00002.png
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 tests/snapshots/stax/test_get_public_key_m/44'/1'/10'_0_0/00000.png
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.
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 tests/snapshots/stax/test_get_public_key_m/44'/1'/10'_0_1/00002.png
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.
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.
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.
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.
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.
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.
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.
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.
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 tests/snapshots/stax/test_sign_message_0_0/00000.png
Binary file modified tests/snapshots/stax/test_sign_message_0_0/00001.png
Binary file modified tests/snapshots/stax/test_sign_message_0_1/00000.png
Binary file modified tests/snapshots/stax/test_sign_message_1_0/00000.png
Binary file modified tests/snapshots/stax/test_sign_message_1_0/00001.png
Binary file modified tests/snapshots/stax/test_sign_message_1_0/00002.png
4 changes: 2 additions & 2 deletions tests/test_get_pubkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def pubkey_instruction_warning_approve(model: Firmware) -> Instructions:
else:
instructions.new_request("Unusual", NavInsID.USE_CASE_CHOICE_CONFIRM,
NavInsID.USE_CASE_CHOICE_CONFIRM)
instructions.same_request("Confirm", NavInsID.USE_CASE_ADDRESS_CONFIRMATION_TAP if model.name == "stax"
else NavInsID.SWIPE_CENTER_TO_LEFT,
instructions.same_request("Confirm",
NavInsID.SWIPE_CENTER_TO_LEFT,
NavInsID.USE_CASE_ADDRESS_CONFIRMATION_CONFIRM)
instructions.same_request("Address", NavInsID.USE_CASE_REVIEW_TAP,
NavInsID.USE_CASE_STATUS_DISMISS)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sign_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def message_instruction_approve(model: Firmware) -> Instructions:
instructions.same_request("Sign")
else:
instructions.address_confirm()
instructions.same_request("Address", NavInsID.USE_CASE_REVIEW_TAP,
instructions.same_request("Address", NavInsID.SWIPE_CENTER_TO_LEFT,
NavInsID.USE_CASE_STATUS_DISMISS)
instructions.confirm_message()
return instructions
Expand Down

0 comments on commit bda537e

Please sign in to comment.