diff --git a/src/provider/default.ts b/src/provider/default.ts index 71e5c0bd4..64c4f1f8a 100644 --- a/src/provider/default.ts +++ b/src/provider/default.ts @@ -160,7 +160,7 @@ export class Provider implements ProviderInterface { headers, }) .then((res) => { - if (res.status !== 200) { + if (res.status >= 400) { throw Error(res.statusText); } return res.text(); @@ -177,7 +177,7 @@ export class Provider implements ProviderInterface { return parse(res) as Endpoints[T]['RESPONSE']; }) .catch((err) => { - throw Error(`Could not ${method} from endpoint: ${url} ${err.message}`); + throw Error(`Could not ${method} from endpoint \`${url}\`: ${err.message}`); }); } diff --git a/starknet-3.12.3.tgz b/starknet-3.12.3.tgz deleted file mode 100644 index 9df90af73..000000000 Binary files a/starknet-3.12.3.tgz and /dev/null differ