diff --git a/lib/providers/duniter_indexer.dart b/lib/providers/duniter_indexer.dart index 801e11c..65a96c3 100644 --- a/lib/providers/duniter_indexer.dart +++ b/lib/providers/duniter_indexer.dart @@ -109,7 +109,7 @@ class DuniterIndexer with ChangeNotifier { client.connectionTimeout = const Duration(milliseconds: 3000); do { - int listLenght = listIndexerEndpoints.length; + int listLenght = listIndexerEndpoints.length - 1; if (i >= listLenght) { log.e('NO VALID INDEXER ENDPOINT FOUND'); indexerEndpoint = ''; diff --git a/pubspec.yaml b/pubspec.yaml index aa0e37c..eed578c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: Pay with G1. # pub.dev using `pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 0.0.9+19 +version: 0.0.9+20 environment: sdk: '>=2.12.0 <3.0.0'