We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff8496 commit da58476Copy full SHA for da58476
packages/faucet-client/src/faucetclient.ts
@@ -22,15 +22,6 @@ export class FaucetClient {
22
denom: denom,
23
};
24
25
- try {
26
- await fetch(this.baseUrl + "/credit", { method: "POST", body: JSON.stringify(body) });
27
- } catch (error: any) {
28
- if (error.response) {
29
- // append response body to error message
30
- throw new Error(`${error}; response body: ${JSON.stringify(error.response.data)}`);
31
- } else {
32
- throw error;
33
- }
34
+ await fetch(this.baseUrl + "/credit", { method: "POST", body: JSON.stringify(body) });
35
}
36
0 commit comments