mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-15 01:25:33 -04:00
new miner address; getInstances fix
This commit is contained in:
parent
a59fdcb2d5
commit
69a528795e
2 changed files with 3 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
|||
const { instances, netId } = require('../config')
|
||||
const { poseidon } = require('circomlib')
|
||||
const { toBN } = require('web3-utils')
|
||||
const { toBN, toChecksumAddress } = require('web3-utils')
|
||||
|
||||
const sleep = (ms) => new Promise((res) => setTimeout(res, ms))
|
||||
|
||||
function getInstance(address) {
|
||||
address = toChecksumAddress(address)
|
||||
const inst = instances[`netId${netId}`]
|
||||
for (const currency of Object.keys(inst)) {
|
||||
for (const amount of Object.keys(inst[currency].instanceAddress)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue