|
|
@ -59,7 +59,9 @@ export class WalletConnectRemixClient extends PluginClient { |
|
|
|
] |
|
|
|
] |
|
|
|
const {publicClient} = configureChains(this.chains, [ |
|
|
|
const {publicClient} = configureChains(this.chains, [ |
|
|
|
w3mProvider({projectId: PROJECT_ID}) |
|
|
|
w3mProvider({projectId: PROJECT_ID}) |
|
|
|
]) |
|
|
|
], { |
|
|
|
|
|
|
|
pollingInterval: 5000 |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.wagmiConfig = createConfig({ |
|
|
|
this.wagmiConfig = createConfig({ |
|
|
|
autoConnect: false, |
|
|
|
autoConnect: false, |
|
|
@ -132,8 +134,12 @@ export class WalletConnectRemixClient extends PluginClient { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
try { |
|
|
|
const message = await provider.request(data) |
|
|
|
const message = await provider.request(data) |
|
|
|
return {jsonrpc: '2.0', result: message, id: data.id} |
|
|
|
return {jsonrpc: '2.0', result: message, id: data.id} |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
return {jsonrpc: '2.0', error: { message: e.message, code: -32603 }, id: data.id} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|