Resolve bug on transaction confirmation PIN

This commit is contained in:
Alfred Kamanda 2024-09-03 15:02:31 +03:00
parent 0c360c0cc4
commit ab6433168a
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703
3 changed files with 6 additions and 3 deletions

View File

@ -837,9 +837,10 @@ func (h *Handlers) InitiateTransaction(ctx context.Context, sym string, input []
account_authorized_flag, err := h.parser.GetFlag("flag_account_authorized") account_authorized_flag, err := h.parser.GetFlag("flag_account_authorized")
if err != nil { if err != nil {
res.FlagReset = append(res.FlagReset, account_authorized_flag) return res, nil
} }
res.FlagReset = append(res.FlagReset, account_authorized_flag)
return res, nil return res, nil
} }

View File

@ -1,4 +1,6 @@
LOAD reset_incorrect 0 LOAD reset_incorrect 6
CATCH incorrect_pin flag_incorrect_pin 1
CATCH _ flag_account_authorized 0
LOAD get_amount 10 LOAD get_amount 10
MAP get_amount MAP get_amount
RELOAD get_recipient RELOAD get_recipient

View File

@ -6,7 +6,7 @@ MAP get_sender
MOUT back 0 MOUT back 0
MOUT quit 9 MOUT quit 9
HALT HALT
LOAD authorize_account 1 LOAD authorize_account 6
RELOAD authorize_account RELOAD authorize_account
CATCH incorrect_pin flag_incorrect_pin 1 CATCH incorrect_pin flag_incorrect_pin 1
INCMP _ 0 INCMP _ 0