-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inject webbtc providersArray and export utils
- Loading branch information
1 parent
26b90e5
commit f6dd768
Showing
8 changed files
with
66 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { getProviderOrThrow } from '../provider'; | ||
|
||
export const request = async (method: string, options: Record<string, any>) => { | ||
const provider = await getProviderOrThrow(options.getProvider); | ||
|
||
if (!method) { | ||
throw new Error('A wallet method is required'); | ||
} | ||
|
||
try { | ||
return await provider.request(method, options); | ||
} catch (error) { | ||
console.error('[Connect] Error during call request', error); | ||
} | ||
}; |
Empty file.