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 2d9fa60 + f71158a commit db55a98Copy full SHA for db55a98
src/connectors/argentMobile/modal/starknet/adapter.ts
@@ -184,12 +184,12 @@ export class StarknetAdapter
184
const response = await this.client.request({ topic, chainId, request })
185
argentModal.closeModal("animateSuccess")
186
return response
187
- } catch (error) {
+ } catch (error: any) {
188
argentModal.closeModal()
189
- if (error instanceof Error) {
+ if (error instanceof Error || (error && error.message !== undefined)) {
190
throw new Error(error.message)
191
}
192
- throw new Error("Unknow error on requestWallet")
+ throw new Error("Unknown error on requestWallet")
193
194
195
0 commit comments