diff --git a/lib/bitcoin/cw_bitcoin.dart b/lib/bitcoin/cw_bitcoin.dart index b514cd6d4..109bbf1e3 100644 --- a/lib/bitcoin/cw_bitcoin.dart +++ b/lib/bitcoin/cw_bitcoin.dart @@ -35,6 +35,9 @@ class CWBitcoin extends Bitcoin { List getTransactionPriorities() => BitcoinTransactionPriority.all; + List getLitecoinTransactionPriorities() + => LitecoinTransactionPriority.all; + @override TransactionPriority deserializeBitcoinTransactionPriority(int raw) => BitcoinTransactionPriority.deserialize(raw: raw); diff --git a/lib/view_model/settings/settings_view_model.dart b/lib/view_model/settings/settings_view_model.dart index bb2f01361..a07f7a87d 100644 --- a/lib/view_model/settings/settings_view_model.dart +++ b/lib/view_model/settings/settings_view_model.dart @@ -42,7 +42,7 @@ List priorityForWalletType(WalletType type) { case WalletType.bitcoin: return bitcoin.getTransactionPriorities(); case WalletType.litecoin: - return bitcoin.getTransactionPriorities(); + return bitcoin.getLitecoinTransactionPriorities(); default: return []; } diff --git a/tool/configure.dart b/tool/configure.dart index c35a92f2e..84c1668d8 100644 --- a/tool/configure.dart +++ b/tool/configure.dart @@ -70,6 +70,7 @@ abstract class Bitcoin { List getWordList(); Map getWalletKeys(Object wallet); List getTransactionPriorities(); + List getLitecoinTransactionPriorities(); TransactionPriority deserializeBitcoinTransactionPriority(int raw); int getFeeRate(Object wallet, TransactionPriority priority); Future generateNewAddress(Object wallet);