From 5f9347c9d3603aeb586bc59f394ae3723c07a3b6 Mon Sep 17 00:00:00 2001 From: QSchlegel Date: Wed, 17 Dec 2025 12:29:36 +0100 Subject: [PATCH] Enhance transaction logic for asset handling - Added conditional logic to update the "lovelace" balance when a non-lovelace unit is processed, improving asset management during transactions. --- src/components/pages/wallet/new-transaction/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/pages/wallet/new-transaction/index.tsx b/src/components/pages/wallet/new-transaction/index.tsx index 1d154a3..bf9e0ee 100644 --- a/src/components/pages/wallet/new-transaction/index.tsx +++ b/src/components/pages/wallet/new-transaction/index.tsx @@ -141,6 +141,9 @@ export default function PageNewTransaction() { unit, (Number(assetMap.get(unit) || 0) + thisAmount).toString(), ); + if (unit !== "lovelace") { + assetMap.set("lovelace", (Number(assetMap.get("lovelace") || 0) + 1160000).toString()); + } } } const utxos = manualUtxos;