You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
You can use the import-paper-wallet command to sweep funds from a wallet into your current wallet.
It does this by creating a temporary wallet using (almost) the same Config as your original wallet.
I say almost, because the data_dir and db_file entries get "absolutised" somewhere during wallet initialisation.
But the temp wallet creation process assumes that paths are relative, based on
Desktop (please complete the following information):
OS & Version: Ubuntu Linux
The fix is presumably either to not "absolutise" the paths in the config, and only do it when needed (path of least surprise)
or override the absolute paths with the expected values in [applications/minotari_console_wallet/src/automation/commands.rs#L1846]
The text was updated successfully, but these errors were encountered:
Describe the bug
You can use the
import-paper-wallet
command to sweep funds from a wallet into your current wallet.It does this by creating a temporary wallet using (almost) the same Config as your original wallet.
I say almost, because the
data_dir
anddb_file
entries get "absolutised" somewhere during wallet initialisation.But the temp wallet creation process assumes that paths are relative, based on
new_config.set_base_path(temp_path.clone());
and
Dumping
WalletConfig
just before the call toset_pase_path
and running the wallet withThe absolute paths are set, even though the config is set to defaults:
If however, use run recovery with relative paths:
Then the sweep works as expected
Desktop (please complete the following information):
The fix is presumably either to not "absolutise" the paths in the config, and only do it when needed (path of least surprise)
or override the absolute paths with the expected values in [applications/minotari_console_wallet/src/automation/commands.rs#L1846]
The text was updated successfully, but these errors were encountered: