Skip to content

Commit

Permalink
Merge pull request #4174 from CrocSwap/autofix/alert-2-67d9e6b4e2
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 2: Clear-text logging of sensitive information
  • Loading branch information
benwolski authored Sep 30, 2024
2 parents d1ce769 + 82e1530 commit dafa940
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions e2e/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,15 @@ export async function initWallet(context: BrowserContext) {
await waiter(2);

console.log('.............................');
console.log(process.env);
console.log(process.env.local);
console.log('Environment variables loaded');
console.log('.............................');

const seedEnv = process.env.TEST_METAMASK_SEED
? process.env.TEST_METAMASK_SEED
: '';
const seed = seedEnv.split(',');

console.log(seed);
console.log('Seed phrase loaded');

async function processWallet(page) {
const elementHandle = await page.$('#onboarding__terms-checkbox');
Expand Down Expand Up @@ -162,7 +161,7 @@ export async function initWallet(context: BrowserContext) {
page.url().includes('chrome-extension') &&
page.url().includes('home.html')
) {
console.log('page found', page.url());
console.log('Page found with URL:', page.url());
await processWallet(page);
}
});
Expand Down

0 comments on commit dafa940

Please sign in to comment.