Closed kumavis closed 6 years ago
https://github.com/ethjs/ethjs-rpc/blob/a7a7804c70551827de5ed15d42f9550c4aadba1f/src/index.js#L62-L66
if an error is thrown in the then's callback, the catch's callback will be called this breaks callback semantics
then
callback
catch
consider https://www.npmjs.com/package/promise-to-callback
https://github.com/ethjs/ethjs-rpc/blob/a7a7804c70551827de5ed15d42f9550c4aadba1f/src/index.js#L62-L66
if an error is thrown in the
then
'scallback
, thecatch
'scallback
will be called this breaks callback semantics