From 637ab86c0142e661727933346891bd78717def7b Mon Sep 17 00:00:00 2001 From: Lisa Date: Fri, 20 Mar 2026 08:41:49 +0000 Subject: [PATCH] Fix: private key logging In the example, the full private key was being logged to the console. For security reasons, changed the logging to show only the first 6 characters followed by "...", preventing the complete private key from being exposed in logs. --- .../model-context-protocol-smart-wallet-server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/examples/model-context-protocol-smart-wallet-server/index.ts b/typescript/examples/model-context-protocol-smart-wallet-server/index.ts index 89c5bf6d6..208d0b7a3 100644 --- a/typescript/examples/model-context-protocol-smart-wallet-server/index.ts +++ b/typescript/examples/model-context-protocol-smart-wallet-server/index.ts @@ -72,7 +72,7 @@ async function initializeServer() { if (!process.env.PRIVATE_KEY || !process.env.SMART_WALLET_ADDRESS) { console.log("Save your private key and smart wallet address to the environment variables"); - console.log("PRIVATE_KEY=" + privateKey); + console.log("PRIVATE_KEY=" + privateKey.slice(0, 6) + "..."); console.log("SMART_WALLET_ADDRESS=" + walletProvider.getAddress()); }