From 1f9d2b5e15fbca601094b2c99186011dad481b01 Mon Sep 17 00:00:00 2001 From: Alexey Pashinov Date: Sun, 15 Feb 2026 16:24:49 +0300 Subject: [PATCH] fix: WalletType for WalletV5R1 --- src/core/ton_wallet/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/ton_wallet/mod.rs b/src/core/ton_wallet/mod.rs index 0672c05b2..33ae914dc 100644 --- a/src/core/ton_wallet/mod.rs +++ b/src/core/ton_wallet/mod.rs @@ -1121,6 +1121,7 @@ impl FromStr for WalletType { } } +// Mapping to Ledger wallet type IDs impl TryInto for WalletType { type Error = anyhow::Error; @@ -1135,9 +1136,7 @@ impl TryInto for WalletType { WalletType::Multisig(MultisigType::SurfWallet) => 6, WalletType::Multisig(MultisigType::Multisig2) => 7, WalletType::Multisig(MultisigType::Multisig2_1) => 8, - WalletType::WalletV4R1 => 9, - WalletType::WalletV4R2 => 10, - WalletType::WalletV5R1 => 11, + WalletType::WalletV5R1 => 9, _ => anyhow::bail!("Unimplemented wallet type"), };