mirror of
https://github.com/tornadocash/tornado-root-updater.git
synced 2024-12-04 23:15:05 +01:00
fix lint
This commit is contained in:
parent
f8678ab44e
commit
f28c4850b3
@ -23,7 +23,7 @@ async function getTornadoTreesEvents(type, fromBlock, toBlock) {
|
||||
hash,
|
||||
block: block.toNumber(),
|
||||
index: index.toNumber(),
|
||||
sha3: ethers.utils.keccak256(encodedData)
|
||||
sha3: ethers.utils.keccak256(encodedData),
|
||||
}
|
||||
})
|
||||
.sort((a, b) => a.index - b.index)
|
||||
|
@ -5,8 +5,8 @@ const { poseidon } = require('circomlib')
|
||||
const toFixedHex = (number, length = 32) =>
|
||||
'0x' +
|
||||
(number instanceof Buffer
|
||||
? number.toString('hex')
|
||||
: BigNumber.from(number).toHexString().slice(2)
|
||||
? number.toString('hex')
|
||||
: BigNumber.from(number).toHexString().slice(2)
|
||||
).padStart(length * 2, '0')
|
||||
|
||||
const poseidonHash = (items) => BigNumber.from(poseidon(items))
|
||||
|
Loading…
Reference in New Issue
Block a user