mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-04-07 23:07:41 +00:00
fix null error bug, firo restores faster again
This commit is contained in:
parent
49c252b7f1
commit
c7d4c4fc70
1 changed files with 2 additions and 1 deletions
|
@ -753,10 +753,11 @@ Future<Map<String, dynamic>?> getInitialAnonymitySetCache(
|
|||
);
|
||||
|
||||
final response = jsonDecode(anonSetResult.body.toString());
|
||||
Logging.instance.log(response, level: LogLevel.Info);
|
||||
if (response['status'] == 'success') {
|
||||
final anonResponse = jsonDecode(response['result'] as String);
|
||||
|
||||
final setData = Map<String, dynamic>.from(anonResponse["result"] as Map);
|
||||
final setData = Map<String, dynamic>.from(anonResponse as Map);
|
||||
return setData;
|
||||
} else {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue