Compare commits
2 Commits
ee41f73347
...
20cfb47940
| Author | SHA1 | Date | |
|---|---|---|---|
| 20cfb47940 | |||
| 03d6cbd429 |
@ -342,6 +342,8 @@ func (h *MenuHandlers) MaxAmount(ctx context.Context, sym string, input []byte)
|
|||||||
fmt.Println("returning for a normal transaction")
|
fmt.Println("returning for a normal transaction")
|
||||||
|
|
||||||
res.Content = l.Get("Maximum amount: %s %s\nEnter amount:", formattedBalance, string(activeSym))
|
res.Content = l.Get("Maximum amount: %s %s\nEnter amount:", formattedBalance, string(activeSym))
|
||||||
|
|
||||||
|
fmt.Println("the final Content:", res.Content)
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
LOAD reset_transaction_amount 10
|
LOAD reset_transaction_amount 10
|
||||||
LOAD max_amount 160
|
RELOAD reset_transaction_amount
|
||||||
|
LOAD max_amount 0
|
||||||
RELOAD max_amount
|
RELOAD max_amount
|
||||||
MAP max_amount
|
MAP max_amount
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
@ -9,7 +10,7 @@ RELOAD validate_amount
|
|||||||
CATCH api_failure flag_api_call_error 1
|
CATCH api_failure flag_api_call_error 1
|
||||||
CATCH invalid_amount flag_invalid_amount 1
|
CATCH invalid_amount flag_invalid_amount 1
|
||||||
INCMP _ 0
|
INCMP _ 0
|
||||||
LOAD get_recipient 0
|
LOAD get_recipient 100
|
||||||
LOAD get_sender 64
|
LOAD get_sender 64
|
||||||
LOAD get_amount 32
|
LOAD get_amount 32
|
||||||
INCMP transaction_pin *
|
INCMP transaction_pin *
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user