diff --git a/src/popup/index.html b/src/popup/index.html
index 07ddb4d..6922bcd 100644
--- a/src/popup/index.html
+++ b/src/popup/index.html
@@ -1018,7 +1018,12 @@
diff --git a/src/popup/views/confirmTx.js b/src/popup/views/confirmTx.js
index e7a4ca6..f11cf68 100644
--- a/src/popup/views/confirmTx.js
+++ b/src/popup/views/confirmTx.js
@@ -334,8 +334,13 @@ function init(ctx) {
tx = await contract.transfer(pendingTx.to, amount);
}
+ // Best-effort: clear decrypted secret after use.
+ // Note: JS strings are immutable; this nulls the reference but
+ // the original string may persist in memory until GC.
+ decryptedSecret = null;
txStatus.showWait(pendingTx, tx.hash);
} catch (e) {
+ decryptedSecret = null;
const hash = tx ? tx.hash : null;
txStatus.showError(pendingTx, hash, e.shortMessage || e.message);
}