From 55260b5af8b921c594a586640e41c6094b48a0c9 Mon Sep 17 00:00:00 2001 From: Willy <11148913+willyfromtheblock@users.noreply.github.com> Date: Mon, 5 Dec 2022 15:23:11 +0100 Subject: [PATCH] happy mistake (#207) --- lib/providers/active_wallets.dart | 3 ++- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/providers/active_wallets.dart b/lib/providers/active_wallets.dart index a87b2b18..32e6286a 100644 --- a/lib/providers/active_wallets.dart +++ b/lib/providers/active_wallets.dart @@ -359,8 +359,9 @@ class ActiveWallets with ChangeNotifier { String addr; if (asMap['scriptPubKey']['addresses'].runtimeType == List) { addr = asMap['scriptPubKey']['addresses'][0]; + } else { + addr = asMap['scriptPubKey']['address']; } - addr = asMap['scriptPubKey']['address']; if (openWallet.addresses .firstWhereOrNull((element) => element.address == addr) != diff --git a/pubspec.yaml b/pubspec.yaml index 7ac09607..c6333f89 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: peercoin description: A new Peercoin wallet. -version: 1.1.0+120 +version: 1.1.0+121 environment: sdk: '>=2.12.0 <3.0.0'