Fixes for LTC.

This commit is contained in:
M 2021-05-07 21:59:03 +03:00
parent 35a76cd0e7
commit 595636c24d
4 changed files with 7 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -138,11 +138,11 @@ class ElectrumTransactionInfo extends TransactionInfo {
@override @override
String amountFormatted() => String amountFormatted() =>
'${formatAmount(bitcoinAmountToString(amount: amount))} BTC'; '${formatAmount(bitcoinAmountToString(amount: amount))} ${walletTypeToCryptoCurrency(type).title}';
@override @override
String feeFormatted() => fee != null String feeFormatted() => fee != null
? '${formatAmount(bitcoinAmountToString(amount: fee))} BTC' ? '${formatAmount(bitcoinAmountToString(amount: fee))} ${walletTypeToCryptoCurrency(type).title}'
: ''; : '';
@override @override

View file

@ -24,6 +24,8 @@ class SeedValidator extends Validator<MnemonicItem> {
switch (type) { switch (type) {
case WalletType.bitcoin: case WalletType.bitcoin:
return getBitcoinWordList(language); return getBitcoinWordList(language);
case WalletType.litecoin:
return getBitcoinWordList(language);
case WalletType.monero: case WalletType.monero:
return getMoneroWordList(language); return getMoneroWordList(language);
default: default:

View file

@ -62,6 +62,9 @@ abstract class WalletRestoreViewModelBase extends WalletCreationVM with Store {
case WalletType.bitcoin: case WalletType.bitcoin:
return BitcoinRestoreWalletFromSeedCredentials( return BitcoinRestoreWalletFromSeedCredentials(
name: name, mnemonic: seed, password: password); name: name, mnemonic: seed, password: password);
case WalletType.litecoin:
return BitcoinRestoreWalletFromSeedCredentials(
name: name, mnemonic: seed, password: password);
default: default:
break; break;
} }