mirror of
https://github.com/tornadocash/tornado-root-updater.git
synced 2024-12-04 15:14:38 +01:00
formatting
This commit is contained in:
parent
c7e9fc2bb2
commit
7f0895af92
@ -16,7 +16,7 @@ async function updateTree(committedEvents, pendingEvents, type) {
|
||||
const rootMethod = type === action.DEPOSIT ? 'depositRoot' : 'withdrawalRoot'
|
||||
const root = toFixedHex(await getTornadoTrees()[rootMethod]())
|
||||
if (!BigNumber.from(root).eq(tree.root())) {
|
||||
throw new Error(`Invalid ${type} root! Contract: ${root}, local: ${tree.root()}`)
|
||||
throw new Error(`Invalid ${type} root! Contract: ${BigNumber.from(root).toHexString()}, local: ${tree.root().toHexString()}`)
|
||||
}
|
||||
while (pendingEvents.length >= INSERT_BATCH_SIZE) {
|
||||
const chunk = pendingEvents.splice(0, INSERT_BATCH_SIZE)
|
||||
|
Loading…
Reference in New Issue
Block a user