prettier + tidy

This commit is contained in:
Alexey 2020-10-02 13:26:05 +03:00
parent 17d48f9508
commit 9cd97feef0
21 changed files with 96 additions and 737 deletions

View file

@ -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)
})