Skip to content

Commit

Permalink
remove comments + dotenv on idnex file
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Apr 17, 2024
1 parent 54d4e8c commit b7d3fe8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import dotenv from "dotenv";
dotenv.config({ override: true });

export * from "./accounts";
export * from "./contracts";
export * from "./provider";
Expand Down
4 changes: 0 additions & 4 deletions scripts/stress-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ async function sendTx(batch: number, accounts: Account[], name: string) {

async function safeSendTx(batch: number, account: Account): Promise<boolean> {
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;
Expand All @@ -122,8 +120,6 @@ async function safeSendTx(batch: number, account: Account): Promise<boolean> {
);
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;
Expand Down

0 comments on commit b7d3fe8

Please sign in to comment.