Skip to content

Commit

Permalink
Tweak env flush
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Oct 6, 2023
1 parent 09c6656 commit e265904
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/utils/SignerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,5 @@ async function getSecretSigner(): Promise<Wallet> {
* 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]);
}

0 comments on commit e265904

Please sign in to comment.