diff --git a/src/core/ton_wallet/mod.rs b/src/core/ton_wallet/mod.rs index 33ae914dc..c3450fe4d 100644 --- a/src/core/ton_wallet/mod.rs +++ b/src/core/ton_wallet/mod.rs @@ -1137,6 +1137,10 @@ impl TryInto for WalletType { WalletType::Multisig(MultisigType::Multisig2) => 7, WalletType::Multisig(MultisigType::Multisig2_1) => 8, WalletType::WalletV5R1 => 9, + WalletType::WalletV4R1 => 10, + WalletType::WalletV4R2 => 11, + WalletType::WalletV3R1 => 12, + WalletType::WalletV3R2 => 13, _ => anyhow::bail!("Unimplemented wallet type"), }; diff --git a/src/core/ton_wallet/wallet_v3v4.rs b/src/core/ton_wallet/wallet_v3v4.rs index bae849cf2..e2debc6c6 100644 --- a/src/core/ton_wallet/wallet_v3v4.rs +++ b/src/core/ton_wallet/wallet_v3v4.rs @@ -156,7 +156,7 @@ impl UnsignedMessage for UnsignedWallet { prune_after_depth: u16, ) -> Result { let mut payload = self.payload.clone(); - payload.append_raw(signature, signature.len() * 8)?; + payload.prepend_raw(signature, signature.len() * 8)?; let body = payload.into_cell()?; let mut message = self.message.clone();