From 18dc84c2fa8b796b50a0d60f53842155f1604e7d Mon Sep 17 00:00:00 2001 From: Bart Platak Date: Wed, 24 Sep 2025 22:06:12 +0100 Subject: [PATCH] fix(contract_manager) Don't log private key when running contract_manager --- contract_manager/scripts/deploy_evm_executor_contracts.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contract_manager/scripts/deploy_evm_executor_contracts.ts b/contract_manager/scripts/deploy_evm_executor_contracts.ts index 703b06003f..44ebfff9c3 100644 --- a/contract_manager/scripts/deploy_evm_executor_contracts.ts +++ b/contract_manager/scripts/deploy_evm_executor_contracts.ts @@ -120,8 +120,12 @@ export async function main() { CACHE_FILE, ); + const maskedDeploymentConfig = { + ...deploymentConfig, + privateKey: deploymentConfig.privateKey ? `` : undefined, + }; console.log( - `Deployment config: ${JSON.stringify(deploymentConfig, null, 2)}\n`, + `Deployment config: ${JSON.stringify(maskedDeploymentConfig, null, 2)}\n`, ); console.log(`Deploying executor contracts on ${chain.getId()}...`);