Fixes for LTC.
M committed
May 7, 2021 at 21:59 UTC
595636c24d8d8ac3b370c49f22b64d6b38c2e0be
4 files changed
+7
-2
assets/images/litecoin_menu.png
Binary files a/assets/images/litecoin_menu.png and b/assets/images/litecoin_menu.png differ
lib/bitcoin/electrum_transaction_info.dart
+2
-2
@@ -138,11 +138,11 @@ class ElectrumTransactionInfo extends TransactionInfo {
138
139
@override
140
String amountFormatted() =>
141
- '${formatAmount(bitcoinAmountToString(amount: amount))} BTC';
141
+ '${formatAmount(bitcoinAmountToString(amount: amount))} ${walletTypeToCryptoCurrency(type).title}';
142
143
@override
144
String feeFormatted() => fee != null
145
- ? '${formatAmount(bitcoinAmountToString(amount: fee))} BTC'
145
+ ? '${formatAmount(bitcoinAmountToString(amount: fee))} ${walletTypeToCryptoCurrency(type).title}'
146
: '';
147
148
@override
lib/core/seed_validator.dart
+2
@@ -24,6 +24,8 @@ class SeedValidator extends Validator<MnemonicItem> {
24
switch (type) {
25
case WalletType.bitcoin:
26
return getBitcoinWordList(language);
27
+ case WalletType.litecoin:
28
+ return getBitcoinWordList(language);
29
case WalletType.monero:
30
return getMoneroWordList(language);
31
default:
lib/view_model/wallet_restore_view_model.dart
+3
@@ -62,6 +62,9 @@ abstract class WalletRestoreViewModelBase extends WalletCreationVM with Store {
62
case WalletType.bitcoin:
63
return BitcoinRestoreWalletFromSeedCredentials(
64
name: name, mnemonic: seed, password: password);
65
+ case WalletType.litecoin:
66
+ return BitcoinRestoreWalletFromSeedCredentials(
67
+ name: name, mnemonic: seed, password: password);
68
default:
69
break;
70
}