Skip to content

Commit

Permalink
[Ethash] fix unhandled promise rejection
Browse files Browse the repository at this point in the history
[Ethash] lint
  • Loading branch information
jochem-brouwer committed Aug 12, 2020
1 parent 8546612 commit fccea35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ethash/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ export default class Ethash {
resolve()
}
})
}).catch(function (e) {
cb(e)
})
}
if (!error) {
Expand Down

0 comments on commit fccea35

Please sign in to comment.