change position of CATCH to correct node and route to previous node

This commit is contained in:
Alfred Kamanda 2024-08-23 18:53:24 +03:00
parent 460e951584
commit 538a06887a
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703
5 changed files with 7 additions and 7 deletions

View File

@ -1,12 +1,12 @@
LOAD reset_transaction_amount 0 LOAD reset_transaction_amount 0
RELOAD validate_recipient
CATCH invalid_recipient 13 1
LOAD max_amount 10 LOAD max_amount 10
MAP max_amount MAP max_amount
MOUT back 0 MOUT back 0
HALT HALT
INCMP _ 0
LOAD validate_amount 64 LOAD validate_amount 64
RELOAD validate_amount
CATCH invalid_amount 17 1
INCMP _ 0
LOAD get_recipient 12 LOAD get_recipient 12
LOAD get_sender 64 LOAD get_sender 64
INCMP transaction_pin * INCMP transaction_pin *

View File

@ -3,5 +3,5 @@ RELOAD reset_transaction_amount
MOUT retry 1 MOUT retry 1
MOUT quit 9 MOUT quit 9
HALT HALT
INCMP amount 1 INCMP _ 1
INCMP quit 9 INCMP quit 9

View File

@ -3,5 +3,5 @@ RELOAD transaction_reset
MOUT retry 1 MOUT retry 1
MOUT quit 9 MOUT quit 9
HALT HALT
INCMP send 1 INCMP _ 1
INCMP quit 9 INCMP quit 9

View File

@ -2,5 +2,7 @@ LOAD transaction_reset 0
MOUT back 0 MOUT back 0
HALT HALT
LOAD validate_recipient 20 LOAD validate_recipient 20
RELOAD validate_recipient
CATCH invalid_recipient 13 1
INCMP _ 0 INCMP _ 0
INCMP amount * INCMP amount *

View File

@ -1,6 +1,4 @@
RELOAD validate_amount
MAP validate_amount MAP validate_amount
CATCH invalid_amount 17 1
RELOAD get_recipient RELOAD get_recipient
MAP get_recipient MAP get_recipient
RELOAD get_sender RELOAD get_sender