Skip to content
Snippets Groups Projects
Commit 736f7790 authored by poka's avatar poka
Browse files

fix LateInitializationError: Field 'api' has not been initialized.

parent 36267865
No related branches found
No related tags found
No related merge requests found
Pipeline #40121 waiting for manual action
...@@ -681,6 +681,7 @@ class SubstrateSdk with ChangeNotifier { ...@@ -681,6 +681,7 @@ class SubstrateSdk with ChangeNotifier {
} }
String? getConnectedEndpoint() { String? getConnectedEndpoint() {
if (!sdkReady) return null;
return sdk.api.connectedNode?.endpoint; return sdk.api.connectedNode?.endpoint;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment