Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions lib/state/wallet/logic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Loading