Skip to content

Commit 6f4abf4

Browse files
authored
fix(contract_manager) Don't log private key when running contract_manager (#3078)
1 parent 7166cfe commit 6f4abf4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contract_manager/scripts/deploy_evm_executor_contracts.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,12 @@ export async function main() {
120120
CACHE_FILE,
121121
);
122122

123+
const maskedDeploymentConfig = {
124+
...deploymentConfig,
125+
privateKey: deploymentConfig.privateKey ? `<REDACTED>` : undefined,
126+
};
123127
console.log(
124-
`Deployment config: ${JSON.stringify(deploymentConfig, null, 2)}\n`,
128+
`Deployment config: ${JSON.stringify(maskedDeploymentConfig, null, 2)}\n`,
125129
);
126130

127131
console.log(`Deploying executor contracts on ${chain.getId()}...`);

0 commit comments

Comments
 (0)