Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
丁祖华 authored and 丁祖华 committed Sep 10, 2021
1 parent bc4d31f commit bf37767
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
8 changes: 3 additions & 5 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,9 @@ packages:
flutter_aes_ecb_pkcs5:
dependency: transitive
description:
path: "."
ref: master
resolved-ref: "5af982b8bc604258462efc808f9ac3d3ecfc7062"
url: "[email protected]:polkawallet-io/flutter_aes_ecb_pkcs5.git"
source: git
path: "../../flutter_aes_ecb_pkcs5"
relative: true
source: path
version: "0.1.1"
flutter_inappwebview:
dependency: transitive
Expand Down
5 changes: 2 additions & 3 deletions lib/service/staking.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ class ServiceStaking {
}

Future<int?> getSlashingSpans(String stashId) async {
final int? spans = await (serviceRoot.webView!
.evalJavascript('staking.getSlashingSpans(api, "$stashId")')
as FutureOr<int?>);
final dynamic spans = await serviceRoot.webView!
.evalJavascript('staking.getSlashingSpans(api, "$stashId")');
return spans;
}
}
8 changes: 3 additions & 5 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,9 @@ packages:
flutter_aes_ecb_pkcs5:
dependency: "direct main"
description:
path: "."
ref: master
resolved-ref: "5af982b8bc604258462efc808f9ac3d3ecfc7062"
url: "[email protected]:polkawallet-io/flutter_aes_ecb_pkcs5.git"
source: git
path: "../flutter_aes_ecb_pkcs5"
relative: true
source: path
version: "0.1.1"
flutter_inappwebview:
dependency: "direct main"
Expand Down
7 changes: 4 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ dependencies:
get_storage: ^2.0.3
json_annotation: ^4.0.1
flutter_aes_ecb_pkcs5:
git:
url: https://github.com/polkawallet-io/flutter_aes_ecb_pkcs5.git
ref: master
path: ../flutter_aes_ecb_pkcs5
# git:
# url: https://github.com/polkawallet-io/flutter_aes_ecb_pkcs5.git
# ref: master

convert: ^3.0.1
mobx: ^2.0.4
Expand Down

0 comments on commit bf37767

Please sign in to comment.