Skip to content

Commit 57d77ca

Browse files
committed
require .env
1 parent ac1d32b commit 57d77ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/tools/worker.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ import { ethersProvider } from "@/providers/ethersProvider";
2121
const step = 2000;
2222

2323
const worker = async () => {
24+
if (
25+
TOPIC_BID.length !== 66 ||
26+
TOPIC_CANCEL.length !== 66 ||
27+
TOPIC_CHANGE.length !== 66 ||
28+
TOPIC_CREATE.length !== 66
29+
) {
30+
throw new Error("Invalid topic length");
31+
}
2432
const db = await connectMongo();
2533
console.log("Worker started");
2634
while (true) {

0 commit comments

Comments
 (0)