Remove fallback default priority to calculate fee, in order to know if something is wrong from anypay

This commit is contained in:
OmarHatem 2022-12-17 02:24:15 +02:00
parent 7ffb654065
commit a901fbad2c

View file

@ -55,9 +55,7 @@ class IoniaAnyPay {
address: out.address,
formattedCryptoAmount: out.amount,
sendAll: false)).toList(),
feeRate: instruction.requiredFeeRate,
priority: bitcoin!.getBitcoinTransactionPriorityMedium(),
);
feeRate: instruction.requiredFeeRate);
case AnyPayChain.ltc:
return bitcoin!.createBitcoinTransactionCredentialsRaw(
instruction.outputs.map((out) =>
@ -66,9 +64,7 @@ class IoniaAnyPay {
address: out.address,
formattedCryptoAmount: out.amount,
sendAll: false)).toList(),
feeRate: instruction.requiredFeeRate,
priority: bitcoin!.getLitecoinTransactionPriorityMedium(),
);
feeRate: instruction.requiredFeeRate);
default:
throw Exception('Incorrect transaction chain: ${payment.chain.toUpperCase()}');
}