Skip to content

Commit 4af7c19

Browse files
committed
config must be able to be updated to take into account updated node uri if provided. This really needs to not be a string that contains config info that should never change such as the wallet dir and network type... but this is what we have to work with
1 parent 7c27dfb commit 4af7c19

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/epic_wallet.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class EpicWallet {
2727
_epicboxConfig = epicboxConfig;
2828

2929
final EpicWorker _worker;
30-
final String _config;
30+
String _config;
3131
String _epicboxConfig;
3232

3333
String? _walletHandle;
@@ -631,8 +631,12 @@ class EpicWallet {
631631
_epicboxConfig = epicboxConfig;
632632
}
633633

634+
void updateConfig(String config) {
635+
_config = config;
636+
}
637+
634638
/// Get wallet handle (for compatibility)
635-
///
639+
///
636640
/// This can safely be removed.
637641
String get handle => _getWalletHandle();
638642

0 commit comments

Comments
 (0)