Merge pull request #679 from cake-tech/fix-gift-card-nullability-issue

Fix Nullability issue in gift cards
This commit is contained in:
Omar Hatem 2022-12-22 17:43:22 +02:00 committed by GitHub
commit e2073a4ef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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