diff --git a/CHANGELOG.md b/CHANGELOG.md index feff3b8d7..4007983ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [0.2.2] - 20210623. + +* bump polkawallet_sdk & ui: 0.2.2. +* fix council.vote action for multi-runtimes. + ## [0.2.1] - 20210609. * update dependency polkawallet_sdk: 0.2.1. diff --git a/lib/service/index.dart b/lib/service/index.dart index 6994ae5c9..93063c8f3 100644 --- a/lib/service/index.dart +++ b/lib/service/index.dart @@ -34,8 +34,9 @@ class PluginApi { } Future getRuntimeModuleName(List modules) async { - final res = await Future.wait( - modules.map((e) => plugin.sdk.webView.evalJavascript('api.tx.$e'))); + final res = await Future.wait(modules.map((e) => + plugin.sdk.webView.evalJavascript('(api.tx.$e != undefined ? {} : null)', wrapPromise: false))); + print(res); return modules[res.indexWhere((e) => e != null)]; } } diff --git a/pubspec.yaml b/pubspec.yaml index c3582607f..d715c6a96 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: polkawallet_plugin_kusama description: The kusama/polkadot network flutter plugin for polkawallet app. -version: 0.2.1 +version: 0.2.2 homepage: environment: @@ -18,11 +18,11 @@ dependencies: flutter_svg: ^0.22.0 get_storage: ^2.0.2 json_annotation: ^4.0.1 - polkawallet_sdk: ^0.1.8 + polkawallet_sdk: ^0.2.2 polkawallet_ui: git: url: https://github.com/polkawallet-io/ui.git - ref: a181a240a0c2b098a2e4140e07d036ea8222cea1 + ref: dee6fc6074f546e914c8794fd5e3a3e2b829b53c dev_dependencies: build_runner: ^2.0.3