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 cb5332b commit f2d88f3Copy full SHA for f2d88f3
packages/web3-providers/src/RiskWarning/index.ts
@@ -8,12 +8,14 @@ const BASE_URL = BASE_URL_MAP[process.env.NODE_ENV]
8
9
export class RiskWarning {
10
static async approve(address: string, pluginID = '') {
11
- await fetch(`${BASE_URL}/v1/risk_warning/confirm`, {
12
- method: 'POST',
13
- body: JSON.stringify({
14
- address,
15
- plugin_id: pluginID,
16
- }),
17
- })
+ try {
+ await fetch(`${BASE_URL}/v1/risk_warning/confirm`, {
+ method: 'POST',
+ body: JSON.stringify({
+ address,
+ plugin_id: pluginID,
+ }),
18
+ })
19
+ } catch {}
20
}
21
0 commit comments