Skip to content

Commit

Permalink
fix nodes list loading
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Jun 9, 2023
1 parent be94399 commit efce3fe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/application/network/provider.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// SPDX-License-Identifier: AGPL-3.0-or-later
import 'package:aewallet/model/available_networks.dart';
import 'package:aewallet/util/get_it_instance.dart';
import 'package:archethic_lib_dart/archethic_lib_dart.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';

Expand All @@ -26,7 +25,15 @@ Future<List<Node>> _networkNodes(
_NetworkNodesRef ref, {
required AvailableNetworks network,
}) async {
final nodeListMain = await sl.get<ApiService>().getNodeList();
final link = ref.read(
_networkLinkProvider(
network: network,
),
);

final nodeListMain = await ApiService(
link,
).getNodeList();

return nodeListMain;
}
Expand Down

0 comments on commit efce3fe

Please sign in to comment.