From b7d3fe811d3f0d657d04b2125e6f0d536f60848e Mon Sep 17 00:00:00 2001 From: gaetbout Date: Wed, 17 Apr 2024 11:37:41 +0200 Subject: [PATCH] remove comments + dotenv on idnex file --- lib/index.ts | 3 --- scripts/stress-test.ts | 4 ---- 2 files changed, 7 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index 33cdef3..abbd0fa 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,6 +1,3 @@ -import dotenv from "dotenv"; -dotenv.config({ override: true }); - export * from "./accounts"; export * from "./contracts"; export * from "./provider"; diff --git a/scripts/stress-test.ts b/scripts/stress-test.ts index 4af4cef..c6a7e27 100644 --- a/scripts/stress-test.ts +++ b/scripts/stress-test.ts @@ -101,8 +101,6 @@ async function sendTx(batch: number, accounts: Account[], name: string) { async function safeSendTx(batch: number, account: Account): Promise { const startTime = new Date().getTime(); - // console.log(`\t${getFormattedDate()} Transfer\t${batch} - ${account.address}`); - // This can fail either when getting nonce OR when sending the transfer TX try { const contract = account.transactionVersion == RPC.ETransactionVersion.V3 ? strkContract : ethContract; @@ -122,8 +120,6 @@ async function safeSendTx(batch: number, account: Account): Promise { ); nonceMap.set(account.address, nonce + 1n); - // const totalTime = ((new Date().getTime() - startTime) / 1000).toFixed(0); - // console.log(`\t${getFormattedDate()} Transfer done\t${batch} - ${account.address} - took ${totalTime}s`); successTx += 1; txs.push(transaction_hash); return true;