fetch the DATA_RECIPIENT_INPUT instead of temporary value

This commit is contained in:
Alfred Kamanda 2026-02-18 16:08:47 +03:00
parent 836ea3ce9d
commit 8d259683a1
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -13,7 +13,7 @@ import (
) )
type TransactionData struct { type TransactionData struct {
TemporaryValue string RecipientInput string
ActiveSym string ActiveSym string
Amount string Amount string
PublicKey string PublicKey string
@ -77,7 +77,7 @@ func ParseAndScaleAmount(storedAmount, activeDecimal string) (string, error) {
func ReadTransactionData(ctx context.Context, store DataStore, sessionId string) (TransactionData, error) { func ReadTransactionData(ctx context.Context, store DataStore, sessionId string) (TransactionData, error) {
data := TransactionData{} data := TransactionData{}
fieldToKey := map[string]storedb.DataTyp{ fieldToKey := map[string]storedb.DataTyp{
"TemporaryValue": storedb.DATA_TEMPORARY_VALUE, "RecipientInput": storedb.DATA_RECIPIENT_INPUT,
"ActiveSym": storedb.DATA_ACTIVE_SYM, "ActiveSym": storedb.DATA_ACTIVE_SYM,
"Amount": storedb.DATA_AMOUNT, "Amount": storedb.DATA_AMOUNT,
"PublicKey": storedb.DATA_PUBLIC_KEY, "PublicKey": storedb.DATA_PUBLIC_KEY,