From bb30be548a6ad4492d670147b2d02cd9e6a69647 Mon Sep 17 00:00:00 2001 From: void-57 Date: Tue, 14 Oct 2025 13:23:54 +0530 Subject: [PATCH] Refactor wallet recovery logic --- index.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/index.html b/index.html index 326fd06..7f4529e 100644 --- a/index.html +++ b/index.html @@ -2921,14 +2921,10 @@ try { let wallet; - if (typeof tonCrypto !== "undefined" && tonCrypto.recoverFromInput) { + if (typeof tonCrypto !== "undefined" ) { wallet = await tonCrypto.recoverFromInput(privateKeyInput); - } else { - // Fallback to getSenderWallet with the provided key - wallet = await tonBlockchainAPI.getSenderWallet(privateKeyInput); } const tonData = wallet.TON || wallet; - // Pre-convert the TON address to avoid Promise display const friendlyTonAddress = await convertTob64(tonData.address); output.innerHTML = ` @@ -3049,7 +3045,6 @@

Recovery Failed

-

Failed to recover : ${error.message}

Please check that you've entered a valid private key in the correct format.