mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-08 20:09:24 +00:00
Fix typos
This commit is contained in:
parent
4f1235d766
commit
1fe1b2fd87
3 changed files with 7 additions and 7 deletions
|
@ -90,12 +90,12 @@ Edit the applicable `strings_XX.arb` file in `res/values/` and open a pull reque
|
||||||
- French
|
- French
|
||||||
- German
|
- German
|
||||||
- Italian
|
- Italian
|
||||||
- Portugese
|
- Portuguese
|
||||||
- Dutch
|
- Dutch
|
||||||
- Polish
|
- Polish
|
||||||
- Croatian
|
- Croatian
|
||||||
- Russian
|
- Russian
|
||||||
- Ukranian
|
- Ukrainian
|
||||||
- Hindi
|
- Hindi
|
||||||
- Japanese
|
- Japanese
|
||||||
- Chinese
|
- Chinese
|
||||||
|
|
|
@ -57,7 +57,7 @@ class AnyPayPayment {
|
||||||
|
|
||||||
List<String> get outAddresses {
|
List<String> get outAddresses {
|
||||||
return instructions
|
return instructions
|
||||||
.map((instuction) => instuction.outputs.map((out) => out.address))
|
.map((instruction) => instruction.outputs.map((out) => out.address))
|
||||||
.expand((e) => e)
|
.expand((e) => e)
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,13 +22,13 @@ class WalletLoadingService {
|
||||||
final wallet = await walletService.openWallet(name, password);
|
final wallet = await walletService.openWallet(name, password);
|
||||||
|
|
||||||
if (type == WalletType.monero) {
|
if (type == WalletType.monero) {
|
||||||
await upateMoneroWalletPassword(wallet);
|
await updateMoneroWalletPassword(wallet);
|
||||||
}
|
}
|
||||||
|
|
||||||
return wallet;
|
return wallet;
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> upateMoneroWalletPassword(WalletBase wallet) async {
|
Future<void> updateMoneroWalletPassword(WalletBase wallet) async {
|
||||||
final key = PreferencesKey.moneroWalletUpdateV1Key(wallet.name);
|
final key = PreferencesKey.moneroWalletUpdateV1Key(wallet.name);
|
||||||
var isPasswordUpdated = sharedPreferences.getBool(key) ?? false;
|
var isPasswordUpdated = sharedPreferences.getBool(key) ?? false;
|
||||||
|
|
||||||
|
@ -37,8 +37,8 @@ class WalletLoadingService {
|
||||||
}
|
}
|
||||||
|
|
||||||
final password = generateWalletPassword();
|
final password = generateWalletPassword();
|
||||||
// Save new generated password with backup key for case
|
// Save new generated password with backup key for case where
|
||||||
// if wallet will change password, but it will faild to updated in secure storage
|
// wallet will change password, but it will fail to update in secure storage
|
||||||
final bakWalletName = '#__${wallet.name}_bak__#';
|
final bakWalletName = '#__${wallet.name}_bak__#';
|
||||||
await keyService.saveWalletPassword(walletName: bakWalletName, password: password);
|
await keyService.saveWalletPassword(walletName: bakWalletName, password: password);
|
||||||
await wallet.changePassword(password);
|
await wallet.changePassword(password);
|
||||||
|
|
Loading…
Reference in a new issue