mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
Fixes for LTC.
This commit is contained in:
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 |
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue