Skip to content

Commit 08b26c5

Browse files
author
jsolman
committed
Fix bug that could cause repeated deposits of UTXO assets to erroneously fail.
1 parent 191aded commit 08b26c5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aphelion-desktop-wallet",
3-
"version": "3.4.2",
3+
"version": "3.5.0",
44
"author": "Aphelion <info@aphelion.org>",
55
"description": "Aphelion Desktop Wallet",
66
"license": "LicenseRef-LICENSE",

src/renderer/services/dex.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,11 @@ export default {
694694
alerts.success('Deposit relayed, waiting for confirmation...');
695695
neo.monitorTransactionConfirmation(res.tx, true)
696696
.then(() => {
697-
neo.applyTxToAddressSystemAssetBalance(currentWallet.address, res.tx, true);
697+
if (assetId !== assets.NEO && assetId !== assets.GAS) {
698+
// Can't apply for NEO or GAS deposits, because it won't distinguish the new UTXO change from the
699+
// amounts sent.
700+
neo.applyTxToAddressSystemAssetBalance(currentWallet.address, res.tx, true);
701+
}
698702
resolve(res.tx);
699703
})
700704
.catch((e) => {

0 commit comments

Comments
 (0)