mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 21:04:53 +00:00
Merge pull request #679 from cake-tech/fix-gift-card-nullability-issue
Fix Nullability issue in gift cards
This commit is contained in:
commit
e2073a4ef8
1 changed files with 4 additions and 2 deletions
|
@ -191,8 +191,10 @@ abstract class ElectrumWalletBase extends WalletBase<ElectrumBalance,
|
||||||
throw BitcoinTransactionNoInputsException();
|
throw BitcoinTransactionNoInputsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
final allAmountFee = feeAmountForPriority(
|
final allAmountFee = transactionCredentials.feeRate != null
|
||||||
transactionCredentials.priority!, inputs.length, outputs.length);
|
? feeAmountWithFeeRate(transactionCredentials.feeRate!, inputs.length, outputs.length)
|
||||||
|
: feeAmountForPriority(transactionCredentials.priority!, inputs.length, outputs.length);
|
||||||
|
|
||||||
final allAmount = allInputsAmount - allAmountFee;
|
final allAmount = allInputsAmount - allAmountFee;
|
||||||
|
|
||||||
var credentialsAmount = 0;
|
var credentialsAmount = 0;
|
||||||
|
|
Loading…
Reference in a new issue