mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-15 17:40:18 -04:00
prettier + tidy
This commit is contained in:
parent
17d48f9508
commit
9cd97feef0
21 changed files with 96 additions and 737 deletions
|
@ -18,7 +18,7 @@ async function fetchEvents(from = 0, to = 'latest') {
|
|||
})
|
||||
return events
|
||||
.sort((a, b) => a.returnValues.index - b.returnValues.index)
|
||||
.map((e) => toBN(e.returnValues.commitment))
|
||||
.map(e => toBN(e.returnValues.commitment))
|
||||
}
|
||||
|
||||
async function processNewEvent(err, event) {
|
||||
|
@ -91,7 +91,7 @@ async function init() {
|
|||
|
||||
init()
|
||||
|
||||
process.on('unhandledRejection', (error) => {
|
||||
process.on('unhandledRejection', error => {
|
||||
console.error('Unhandled promise rejection', error)
|
||||
process.exit(1)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue