mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
temp hack
This commit is contained in:
parent
d6e3bbae83
commit
e2d5b32b23
1 changed files with 4 additions and 1 deletions
|
@ -2166,8 +2166,11 @@ class BitcoinCashWallet extends CoinServiceAPI
|
|||
// outgoing tx
|
||||
type = isar_models.TransactionType.outgoing;
|
||||
amount = amountSentFromWallet - changeAmount - fee;
|
||||
|
||||
// TODO fix this hack
|
||||
final diff = outputAddresses.difference(myChangeReceivedOnAddresses);
|
||||
final possible =
|
||||
outputAddresses.difference(myChangeReceivedOnAddresses).first;
|
||||
diff.isNotEmpty ? diff.first : myChangeReceivedOnAddresses.first;
|
||||
|
||||
if (transactionAddress.value != possible) {
|
||||
transactionAddress = isar_models.Address(
|
||||
|
|
Loading…
Reference in a new issue