sotez icon indicating copy to clipboard operation
sotez copied to clipboard

Methods just return undefined if node is unreachable

Open CherryDT opened this issue 4 years ago • 0 comments

> c=new sotez.default('http://dummy:1234')
> await c.getBalance('tz1RvhdZ5pcjD19vCCK9PgZpnmErTba3dsBs')
undefined

This is pretty unexpected, it should throw an error instead (ideally a descriptive one).

CherryDT avatar May 09 '20 19:05 CherryDT