mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
add missing default priority for btc and ltc
This commit is contained in:
parent
3f7889dac0
commit
afd9fe7554
1 changed files with 6 additions and 2 deletions
|
@ -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()}');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue