mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
FIxes(2).
This commit is contained in:
@@ -45,7 +45,7 @@ Future defaultSettingsMigration(
|
||||
FiatCurrency.usd.toString());
|
||||
await sharedPreferences.setInt(
|
||||
PreferencesKey.currentTransactionPriorityKey,
|
||||
TransactionPriority.standart.raw);
|
||||
TransactionPriority.standard.raw);
|
||||
await sharedPreferences.setInt(
|
||||
PreferencesKey.currentBalanceDisplayModeKey,
|
||||
BalanceDisplayMode.availableBalance.raw);
|
||||
|
||||
@@ -18,7 +18,7 @@ class TransactionPriority extends EnumerableItem<int> with Serializable<int> {
|
||||
static const medium = TransactionPriority(title: 'Medium', raw: 2);
|
||||
static const fast = TransactionPriority(title: 'Fast', raw: 3);
|
||||
static const fastest = TransactionPriority(title: 'Fastest', raw: 4);
|
||||
static const standart = slow;
|
||||
static const standard = slow;
|
||||
|
||||
|
||||
static List<TransactionPriority> forWalletType(WalletType type) {
|
||||
|
||||
@@ -48,3 +48,14 @@ String walletTypeToString(WalletType type) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
String walletTypeToDisplayName(WalletType type) {
|
||||
switch (type) {
|
||||
case WalletType.monero:
|
||||
return 'Monero';
|
||||
case WalletType.bitcoin:
|
||||
return 'Bitcoin (Electrum)';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user