0xPolygonID/polygonid-flutter-sdk

Getting error while generating new Identity

Closed this issue · 1 comments

Branch: develop

Future<void> main() async {
  if (DeviceOS.isMobile) {
    await PolygonIdSdk.init(
      env: EnvEntity(
        blockchain: polygonMumbai['blockchain']!,
        network: polygonMumbai['network']!,
        web3Url: polygonMumbai['web3Url']!,
        web3RdpUrl: polygonMumbai['web3RdpUrl']!,
        web3ApiKey: polygonMumbai['web3ApiKey']!,
        idStateContract: polygonMumbai['idStateContract']!,
        pushUrl: polygonMumbai['pushUrl']!,
        ipfsUrl: polygonMumbai['ipfsUrl']!,
      ),
    );
    final sdk = PolygonIdSdk.I;
    log((await sdk.getEnv()).toString(), name: "PolygonIdSdk");
    PrivateIdentityEntity identity = await sdk.identity.addIdentity();
    log(identity.toJson().toString(), name: "PolygonIdSdk");
  }
  EquatableConfig.stringify = kDebugMode;
  runApp(
    const MyApp(),
  );
 };

Logs:
E/flutter ( 6577): <asynchronous suspension> E/flutter ( 6577): #10 Future.wait.<anonymous closure> (dart:async/future.dart:525:21) E/flutter ( 6577): <asynchronous suspension> E/flutter ( 6577): #11 AddIdentityUseCase.execute add_identity_use_case.dart:54 E/flutter ( 6577): <asynchronous suspension> E/flutter ( 6577): #12 main main.dart:55 E/flutter ( 6577): <asynchronous suspension>

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.