Shawn Lu 1 rok pred
rodič
commit
b65a3819a7
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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 }))
 })