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, 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) =>
@ -66,9 +64,7 @@ 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()}');
} }