From 3dcad4a092b7c43cf380b1ca353e583fa7b34c09 Mon Sep 17 00:00:00 2001 From: Nathan Seva Date: Wed, 8 Nov 2023 18:22:09 -0500 Subject: [PATCH] update transaction: enable fee edition --- internal/handler/wallet/transfer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/handler/wallet/transfer.go b/internal/handler/wallet/transfer.go index 7fb373d80..3ad4411d2 100644 --- a/internal/handler/wallet/transfer.go +++ b/internal/handler/wallet/transfer.go @@ -63,15 +63,15 @@ func (t *transferCoin) Handle(params operations.TransferCoinParams) middleware.R promptRequest := prompt.PromptRequest{ Action: walletapp.Sign, - Msg: fmt.Sprintf("Unprotect wallet %s", acc.Nickname), Data: PromptRequestSignData{ Fees: string(params.Body.Fee), - OperationType: 0, + WalletAddress: address, + Nickname: acc.Nickname, + OperationType: int(transaction.OpType), + AllowFeeEdition: true, RecipientAddress: *params.Body.RecipientAddress, RecipientNickname: recipientNickname, Amount: string(params.Body.Amount), - WalletAddress: address, - Nickname: acc.Nickname, }, }