Explorar o código

fix pk map bug

Shawn Lu hai 1 ano
pai
achega
b65a3819a7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/main.ts

+ 3 - 0
src/main.ts

@@ -35,6 +35,9 @@ app.post('/add', express.json(), async (req, res) => {
     lastUpdate: new Date(),
   }))
   await DBClient.instance.account.createMany({ data: createData })
+  for (const wallet of wallets) {
+    PKMapping.instance.set(wallet.address, wallet.privateKey)
+  }
   res.status(200).send(JSON.stringify({ processed: pks.length }))
 })