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 ac1d32b commit 57d77caCopy full SHA for 57d77ca
src/tools/worker.ts
@@ -21,6 +21,14 @@ import { ethersProvider } from "@/providers/ethersProvider";
21
const step = 2000;
22
23
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
+ }
32
const db = await connectMongo();
33
console.log("Worker started");
34
while (true) {
0 commit comments