mirror of
https://github.com/wownero/cyberwow.git
synced 2026-10-17 15:31:47 +02:00
fix handling of rpc null
This commit is contained in:
@@ -69,7 +69,7 @@ Future<dynamic> rpc(final String method, {final String field}) async {
|
||||
return null;
|
||||
} else {
|
||||
final _body = await compute(jsonDecode, response.body);
|
||||
final _result = _body['result'];
|
||||
final _result = _body['result'] ?? const {};
|
||||
final _field = field == null ? _result : _result[field];
|
||||
|
||||
return _field;
|
||||
|
||||
Reference in New Issue
Block a user