From 608657966b22af329c7cecb86d438d9b6cd6acec Mon Sep 17 00:00:00 2001 From: sajee_techi Date: Mon, 12 Jan 2026 16:15:33 +0530 Subject: [PATCH 1/2] git commit -m "feat: update wallet properties when remote config is fetched - Update currencyName, symbol, currencyLogo, decimalDigits, and plugins - Apply changes when app resumes and remote config is refreshed - Use copyWith() to create updated wallet instance with new config values - Ensures UI reflects latest community configuration automatically" --- lib/state/wallet/logic.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/state/wallet/logic.dart b/lib/state/wallet/logic.dart index 225b8fdf..fac4784d 100644 --- a/lib/state/wallet/logic.dart +++ b/lib/state/wallet/logic.dart @@ -2183,6 +2183,19 @@ class WalletLogic extends WidgetsBindingObserver { [DBCommunity.fromConfig(remoteConfig)], ); debugPrint('Remote config updated'); + + // Update wallet properties with the new config + if (_state.wallet != null) { + final updatedWallet = _state.wallet!.copyWith( + currencyName: token.name, + symbol: token.symbol, + currencyLogo: remoteConfig.community.logo, + decimalDigits: token.decimals, + plugins: remoteConfig.plugins ?? [], + ); + _state.setWallet(updatedWallet); + debugPrint('Wallet properties updated with remote config'); + } } catch (e, s) { debugPrint('Error updating remote config: $e'); debugPrint('Stacktrace: $s'); From 71cbc38ac327a44a9c3ef73ade493b057e701fa0 Mon Sep 17 00:00:00 2001 From: sajee_techi Date: Mon, 12 Jan 2026 16:28:15 +0530 Subject: [PATCH 2/2] app release build --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 5523e327..e63ba31a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: citizenwallet -version: 2.0.31+294 +version: 2.0.31+295 publish_to: none description: A mobile wallet for your community. environment: