add missing default priority for btc and ltc

This commit is contained in:
OmarHatem 2022-12-16 14:06:08 +02:00
parent 3f7889dac0
commit afd9fe7554

View file

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