temp hack

This commit is contained in:
julian 2023-10-11 18:53:45 -06:00
parent d6e3bbae83
commit e2d5b32b23

View file

@ -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(