Compare commits

..

No commits in common. "eab6dbd74c1a7bb961b1ba2aadbc782831e19481" and "1d82bc2261e6a1540e74aaf293fcf34d3bf68d0a" have entirely different histories.

2 changed files with 2 additions and 7 deletions

View File

@ -77,11 +77,6 @@ func GetTransferData(ctx context.Context, db storage.PrefixDb, publicKey string,
dates := strings.Split(string(data["txdate"]), "\n") dates := strings.Split(string(data["txdate"]), "\n")
syms := strings.Split(string(data["txsym"]), "\n") syms := strings.Split(string(data["txsym"]), "\n")
// Check if index is within range
if index < 1 || index > len(senders) {
return "", fmt.Errorf("transaction not found: index %d out of range", index)
}
// Adjust for 0-based indexing // Adjust for 0-based indexing
i := index - 1 i := index - 1
transactionType := "received" transactionType := "received"

View File

@ -1754,8 +1754,8 @@ func (h *Handlers) GetTransactionsList(ctx context.Context, sym string, input []
return res, nil return res, nil
} }
// ViewTransactionStatement retrieves the transaction statement // ViewTransactionStatement retrieves the token holding and balance from the subprefixDB
// and displays it to the user // and displays it to the user for them to select it
func (h *Handlers) ViewTransactionStatement(ctx context.Context, sym string, input []byte) (resource.Result, error) { func (h *Handlers) ViewTransactionStatement(ctx context.Context, sym string, input []byte) (resource.Result, error) {
var res resource.Result var res resource.Result
sessionId, ok := ctx.Value("SessionId").(string) sessionId, ok := ctx.Value("SessionId").(string)