Kaynağa Gözat

fix pk map bug

Shawn Lu 1 yıl önce
ebeveyn
işleme
b65a3819a7
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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 }))
 })