catch the flag_swap_transaction and move to the transaction_swap node

This commit is contained in:
Alfred Kamanda 2025-08-25 17:20:07 +03:00
parent 0e4dfe1baf
commit 14d493475e
Signed by: Alfred-mk
GPG Key ID: E60B2165A97F4D41
3 changed files with 16 additions and 0 deletions

View File

@ -4,6 +4,7 @@ RELOAD max_amount
MAP max_amount
MOUT back 0
HALT
CATCH transaction_swap flag_swap_transaction 1
LOAD validate_amount 64
RELOAD validate_amount
CATCH api_failure flag_api_call_error 1

View File

@ -0,0 +1,3 @@
{{.transaction_swap_preview}}
Please enter your PIN to confirm:

View File

@ -0,0 +1,12 @@
LOAD transaction_swap_preview 0
MAP transaction_swap_preview
CATCH api_failure flag_api_call_error 1
MOUT back 0
MOUT quit 9
LOAD authorize_account 6
HALT
RELOAD authorize_account
CATCH incorrect_pin flag_incorrect_pin 1
INCMP _ 0
INCMP quit 9
INCMP transaction_swap_initiated *