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.
2 parents 6c24730 + 6298e98 commit 825bc04Copy full SHA for 825bc04
packages/web-wallet/.env
@@ -1 +1 @@
1
-SNAP_ORIGIN=""
+SNAP_ORIGIN="local:http://localhost:8080"
packages/web-wallet/src/hooks/snaps/useRequest.ts
@@ -20,6 +20,7 @@ export const useRequest = () => {
20
* @param params.params - The method params.
21
* @returns The result of the request.
22
*/
23
+
24
const request: Request = async ({ method, params }) => {
25
try {
26
const data =
@@ -32,7 +33,7 @@ export const useRequest = () => {
32
33
} catch (requestError) {
34
setError(requestError as Error);
35
- return null;
36
+ throw requestError;
37
}
38
};
39
0 commit comments