Compare commits

..

7 Commits

Author SHA1 Message Date
Alfred Kamanda
c2cf8e91e5 removed the print debug statements
Some checks failed
release / docker (push) Has been cancelled
2025-11-14 10:55:54 +03:00
Alfred Kamanda
20cfb47940 updated the size outputs 2025-11-14 10:49:11 +03:00
Alfred Kamanda
03d6cbd429 added a debug for the returned content 2025-11-14 10:46:22 +03:00
Alfred Kamanda
ee41f73347 added a debug log 2025-11-14 10:41:34 +03:00
Alfred Kamanda
bafe3cc04e added the swap menu swahili version 2025-11-13 17:13:34 +03:00
Alfred Kamanda
308dc93a91 return nil to CATCH the flag_api_call_error 2025-11-13 17:09:30 +03:00
Alfred Kamanda
8d29c364c3 updated the swahili message for output length error 2025-11-13 17:07:57 +03:00
5 changed files with 7 additions and 4 deletions

View File

@@ -204,7 +204,7 @@ func (h *MenuHandlers) SwapMaxLimit(ctx context.Context, sym string, input []byt
if err != nil {
res.FlagSet = append(res.FlagSet, flag_api_call_error)
logg.ErrorCtxf(ctx, "failed on GetSwapFromTokenMaxLimit", "error", err)
return res, err
return res, nil
}
// Scale down the amount

View File

@@ -340,6 +340,7 @@ func (h *MenuHandlers) MaxAmount(ctx context.Context, sym string, input []byte)
res.FlagReset = append(res.FlagReset, flag_swap_transaction)
res.Content = l.Get("Maximum amount: %s %s\nEnter amount:", formattedBalance, string(activeSym))
return res, nil
}

View File

@@ -1,5 +1,6 @@
LOAD reset_transaction_amount 10
LOAD max_amount 160
RELOAD reset_transaction_amount
LOAD max_amount 0
RELOAD max_amount
MAP max_amount
MOUT back 0
@@ -9,7 +10,7 @@ RELOAD validate_amount
CATCH api_failure flag_api_call_error 1
CATCH invalid_amount flag_invalid_amount 1
INCMP _ 0
LOAD get_recipient 0
LOAD get_recipient 100
LOAD get_sender 64
LOAD get_amount 32
INCMP transaction_pin *

View File

@@ -0,0 +1 @@
Badilisha

View File

@@ -1,2 +1,2 @@
Chagua nambari au ishara ya sarafu kubadilisha KWENDA:
Chagua nambari au ishara ya sarafu unayotaka kupokea.
{{.swap_to_list}}