From e265904c1fe345da1dac845bf8a123a076e94b19 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Fri, 6 Oct 2023 22:59:23 +0200 Subject: [PATCH] Tweak env flush --- src/utils/SignerUtils.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/utils/SignerUtils.ts b/src/utils/SignerUtils.ts index bef02fd3d..433de54f8 100644 --- a/src/utils/SignerUtils.ts +++ b/src/utils/SignerUtils.ts @@ -119,10 +119,5 @@ async function getSecretSigner(): Promise { * Clears the mnemonic and private key from the env. */ function cleanKeysFromEnvironment(): void { - if (process.env.MNEMONIC) { - delete process.env.MNEMONIC; - } - if (process.env.PRIVATE_KEY) { - delete process.env.PRIVATE_KEY; - } + ["MNEMONIC", "PRIVATE_KEY", "SECRET"].forEach((config) => delete process.env[config]); }