Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reload old wallets #6308

Merged
merged 1 commit into from
Apr 26, 2024
Merged
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
5 changes: 4 additions & 1 deletion base_layer/wallet/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,10 @@ pub fn read_or_create_wallet_type<T: WalletBackend + 'static>(

match (db_wallet_type, wallet_type) {
(None, None) => {
panic!("Something is very wrong, no wallet type was found in the DB, or provided (on first run)")
// this is most likely an older wallet pre ledger support, lets put it in software
let wallet_type = WalletType::Software;
db.set_wallet_type(wallet_type)?;
Ok(wallet_type)
},
(None, Some(t)) => {
db.set_wallet_type(t)?;
Expand Down
Loading