removed the debug statements
This commit is contained in:
parent
764431ee58
commit
ed780659d3
@ -121,8 +121,6 @@ func (h *MenuHandlers) handleAddress(ctx context.Context, sessionId, recipient s
|
|||||||
recipientPhoneNumber = nil
|
recipientPhoneNumber = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("on the address; address:", address, "publicKeyNormalized", publicKeyNormalized, "recipientPhoneNumber", recipientPhoneNumber)
|
|
||||||
|
|
||||||
if err := h.determineAndSaveTransactionType(ctx, sessionId, []byte(address), recipientPhoneNumber); err != nil {
|
if err := h.determineAndSaveTransactionType(ctx, sessionId, []byte(address), recipientPhoneNumber); err != nil {
|
||||||
return *res, err
|
return *res, err
|
||||||
}
|
}
|
||||||
@ -187,8 +185,6 @@ func (h *MenuHandlers) handleAlias(ctx context.Context, sessionId, recipient str
|
|||||||
recipientPhoneNumber = nil
|
recipientPhoneNumber = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("on the alias; address:", aliasAddressResult, "publicKeyNormalized", publicKeyNormalized, "recipientPhoneNumber", recipientPhoneNumber)
|
|
||||||
|
|
||||||
if err := h.determineAndSaveTransactionType(ctx, sessionId, []byte(aliasAddressResult), recipientPhoneNumber); err != nil {
|
if err := h.determineAndSaveTransactionType(ctx, sessionId, []byte(aliasAddressResult), recipientPhoneNumber); err != nil {
|
||||||
return *res, err
|
return *res, err
|
||||||
}
|
}
|
||||||
@ -227,8 +223,6 @@ func (h *MenuHandlers) determineAndSaveTransactionType(
|
|||||||
txType = "normal"
|
txType = "normal"
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("the final txtype:", txType)
|
|
||||||
|
|
||||||
// Save the transaction type
|
// Save the transaction type
|
||||||
if err := store.WriteEntry(ctx, sessionId, storedb.DATA_SEND_TRANSACTION_TYPE, []byte(txType)); err != nil {
|
if err := store.WriteEntry(ctx, sessionId, storedb.DATA_SEND_TRANSACTION_TYPE, []byte(txType)); err != nil {
|
||||||
logg.ErrorCtxf(ctx, "Failed to write transaction type", "type", txType, "error", err)
|
logg.ErrorCtxf(ctx, "Failed to write transaction type", "type", txType, "error", err)
|
||||||
@ -331,8 +325,6 @@ func (h *MenuHandlers) MaxAmount(ctx context.Context, sym string, input []byte)
|
|||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("the transaction type:", transactionType)
|
|
||||||
|
|
||||||
// Format the active balance amount to 2 decimal places
|
// Format the active balance amount to 2 decimal places
|
||||||
formattedBalance, _ := store.TruncateDecimalString(string(activeBal), 2)
|
formattedBalance, _ := store.TruncateDecimalString(string(activeBal), 2)
|
||||||
|
|
||||||
@ -747,7 +739,6 @@ func (h *MenuHandlers) TransactionSwapPreview(ctx context.Context, sym string, i
|
|||||||
// Scale down the quoted amount
|
// Scale down the quoted amount
|
||||||
quoteAmountStr := store.ScaleDownBalance(r.OutValue, swapData.ActiveSwapToDecimal)
|
quoteAmountStr := store.ScaleDownBalance(r.OutValue, swapData.ActiveSwapToDecimal)
|
||||||
|
|
||||||
fmt.Println("the quoteAmountStr is:", quoteAmountStr)
|
|
||||||
qouteAmount, err := strconv.ParseFloat(quoteAmountStr, 64)
|
qouteAmount, err := strconv.ParseFloat(quoteAmountStr, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logg.ErrorCtxf(ctx, "failed to parse quoteAmountStr as float", "value", quoteAmountStr, "error", err)
|
logg.ErrorCtxf(ctx, "failed to parse quoteAmountStr as float", "value", quoteAmountStr, "error", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user