From 3738e8b7ccab8bd943203f0f11322e3d6f71162a Mon Sep 17 00:00:00 2001
From: Nicolas80 <nicolas.pmail@protonmail.com>
Date: Sat, 22 Mar 2025 14:52:36 +0100
Subject: [PATCH] * Fix for `vault migrate` that should use sr25519 scheme to
 be consistent

---
 src/commands/vault.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/commands/vault.rs b/src/commands/vault.rs
index 8d7b814..3098833 100644
--- a/src/commands/vault.rs
+++ b/src/commands/vault.rs
@@ -595,11 +595,12 @@ pub async fn handle_command(data: Data, command: Subcommand) -> Result<(), GcliE
 
 				let txn = db.begin().await?;
 
+				// Old key files were in Sr25519 format (and had the Address associated to that scheme)
 				let account = create_base_account_for_vault_data_to_import(
 					&txn,
 					&vault_data_to_import,
 					Some(&vault_data_from_file.password),
-					Some(CryptoScheme::Ed25519),
+					Some(CryptoScheme::Sr25519),
 					None,
 				)
 				.await;
-- 
GitLab