bug: errors from faucet are wrongly parsed and returned as [object Object]
#301
Labels
bug
Something isn't working
[object Object]
#301
Describe the bug
When the faucet API returns an error of any kind, it returns a json object of type
{error: string}
, but the SDK seems to be casting it to string, since errors are returned as[object Object]
.To Reproduce
Making a faucet request twice should show the issue, since it should trigger the cooldown error.
Current behavior
A
[object Object]
string is received as error.Expected behavior
Receive the proper string from the
.error
field.The text was updated successfully, but these errors were encountered: