mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Added auto saving of wallet address to wallet info. Added users wallet addresses into address book.
This commit is contained in:
parent
26a30a62f0
commit
bef18de7a6
16 changed files with 234 additions and 121 deletions
|
@ -10,14 +10,14 @@ ReactionDisposer _onAuthenticationStateChange;
|
|||
dynamic loginError;
|
||||
|
||||
void startAuthenticationStateChange(AuthenticationStore authenticationStore,
|
||||
@required GlobalKey<NavigatorState> navigatorKey) {
|
||||
GlobalKey<NavigatorState> navigatorKey) {
|
||||
_onAuthenticationStateChange ??= autorun((_) async {
|
||||
final state = authenticationStore.state;
|
||||
|
||||
if (state == AuthenticationState.installed) {
|
||||
try {
|
||||
await loadCurrentWallet();
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
loginError = e;
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue