fix(@desktop/wallet): FIx for notification shwoing from to token symbol and to token amount

This commit is contained in:
Khushboo Mehta 2024-07-23 10:54:19 +02:00 committed by Khushboo-dev-cpp
parent 2c70062dc8
commit 8f3a2e8189
2 changed files with 1 additions and 3 deletions

View File

@ -464,7 +464,7 @@ proc connectForNotificationsOnly[T](self: Module[T]) =
let args = TransactionSentArgs(e)
self.view.showToastTransactionSent(args.chainId, args.txHash, args.uuid, args.error,
ord(args.txType), args.fromAddress, args.toAddress, args.fromTokenKey, args.fromAmount,
args.fromTokenKey, args.toAmount)
args.toTokenKey, args.toAmount)
self.events.on(MARK_WALLET_ADDRESSES_AS_SHOWN) do(e:Args):
let args = WalletAddressesArgs(e)

View File

@ -423,7 +423,6 @@ QtObject:
$route.gasAmount, gasFees, route.gasFees.eip1559Enabled, $route.gasFees.maxPriorityFeePerGas, $route.gasFees.maxFeePerGasM)
txData.to = parseAddress(to_addr).some
if sendType == SendType.Swap:
totalAmountToReceive += route.amountOut
txData.slippagePercentage = slippagePercentage
paths.add(self.createPath(route, txData, tokenSymbol, to_addr))
@ -547,7 +546,6 @@ QtObject:
)
txData.data = data
if sendType == SendType.Swap:
totalAmountToReceive += route.amountOut
txData.slippagePercentage = slippagePercentage
let path = self.createPath(route, txData, mtCommand.toAsset, mtCommand.toAddress)