diff --git a/src/fetch.ts b/src/fetch.ts index 3a44559..be9e552 100644 --- a/src/fetch.ts +++ b/src/fetch.ts @@ -130,9 +130,7 @@ function parseResponse(fetchRes: Response, body: Record): Block { // check for rpc error if (body.error) { - throw rpcErrors.internal({ - data: body.error, - }); + throw rpcErrors.internal(body.error); } // return successful result return body.result;