Skip to content

Commit 5f9347c

Browse files
committed
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.
1 parent 83e55ef commit 5f9347c

File tree

1 file changed

+3
-0
lines changed
  • src/components/pages/wallet/new-transaction

1 file changed

+3
-0
lines changed

src/components/pages/wallet/new-transaction/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ export default function PageNewTransaction() {
141141
unit,
142142
(Number(assetMap.get(unit) || 0) + thisAmount).toString(),
143143
);
144+
if (unit !== "lovelace") {
145+
assetMap.set("lovelace", (Number(assetMap.get("lovelace") || 0) + 1160000).toString());
146+
}
144147
}
145148
}
146149
const utxos = manualUtxos;

0 commit comments

Comments
 (0)