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'); 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: