mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
fix address book parsing
This commit is contained in:
parent
7c9ebe7a99
commit
87b87ded0d
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ abstract class BitcoinCashWalletBase extends ElectrumWallet with Store {
|
||||||
|
|
||||||
// Calculate the amount to send and change
|
// Calculate the amount to send and change
|
||||||
final sendAmount = transactionCredentials.outputs[0].formattedCryptoAmount!;
|
final sendAmount = transactionCredentials.outputs[0].formattedCryptoAmount!;
|
||||||
final outputAddress = transactionCredentials.outputs[0].address;
|
final outputAddress = transactionCredentials.outputs[0].isParsedAddress
|
||||||
|
? transactionCredentials.outputs[0].extractedAddress
|
||||||
|
: transactionCredentials.outputs[0].address;
|
||||||
final fee = bitbox.BitcoinCash.getByteCount(utxosToUse.length, 2);
|
final fee = bitbox.BitcoinCash.getByteCount(utxosToUse.length, 2);
|
||||||
final changeAmount = totalBalance - sendAmount - fee;
|
final changeAmount = totalBalance - sendAmount - fee;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue