We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1286b0 commit e7a34f5Copy full SHA for e7a34f5
test/e2e/scripts/counter.ts
@@ -1,10 +1,11 @@
1
// Anvil chain outputs every RPC call to stdout
2
// You can save the output to a file and then use this script to count the number of times a specific RPC call is made.
3
4
+import { argv } from "bun";
5
import { readFile } from "fs/promises";
6
import { join } from "path";
7
-const file = join(__dirname, "rpc_spam.txt");
8
+const file = join(__dirname, argv[2]);
9
10
async function countLines(file: string) {
11
const data = await readFile(file, "utf-8");
0 commit comments