diff --git a/CHANGELOG.md b/CHANGELOG.md index dc4f481..00ec39c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.0-rc.6 +* 🐛 Fix watchAccount method - Fix Attempting to rewrap a JS function error + ## 1.0.0-rc.5 * 🐛 Fix watchAccount method diff --git a/lib/src/js/actions/watch_account.js.dart b/lib/src/js/actions/watch_account.js.dart index 62b2260..ad00b2b 100644 --- a/lib/src/js/actions/watch_account.js.dart +++ b/lib/src/js/actions/watch_account.js.dart @@ -28,6 +28,6 @@ extension JSWatchAccountParametersConversion on WatchAccountParameters { final accountDart = currentAccount.toDart; final prevAccountDart = prevAccount.toDart; onChange(accountDart, prevAccountDart); - }).toJS, + }) as JSFunction, ); } diff --git a/pubspec.yaml b/pubspec.yaml index 2414746..9ff18c9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: wagmi_flutter_web description: "Wagmi JS SDK wrapper for Dart Web" -version: 1.0.0-rc.5 +version: 1.0.0-rc.6 homepage: https://github.com/archethic-foundation/wagmi_flutter_web environment: