question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CRITICAL: web3modal.com iOS 15 breaks walletconnect (Metamask)

See original GitHub issue

After upgrading to iOS 15 (coincidence?) there appears to be some kind of problem between web3modal and bridge.walletconnect.org (Metamask)

To reproduce:

  • Go to wbe3modal.com
  • Click connect
  • Select WalletConnect
  • Tap Metamask
  • Approve Connection
  • Browser crashes

The following is from the developer console in Safari

[Log] wallet connect (main.24d3029c.chunk.js, line 2)
[Log] wc:f5a2b5e0-01e3-4db7-981f-75a2b955df89@1?bridge=https%3A%2F%2Fbridge.walletconnect.org&key=d605eb3797f8017ea76222ea4a15d05994d47c682e702e9dacc27ee53ddafc15 (2.e7cb8767.chunk.js, line 2)
[Error] WebSocket connection to 'wss://bridge.walletconnect.org/' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 100 - Protocol error)

In my own reactjs app, I’m seeing this …

Unhandled Rejection (TypeError): undefined is not an object (evaluating '_walletconnect_environment__WEBPACK_IMPORTED_MODULE_0__["getSubtleCrypto"]().importKey')
(anonymous function)
src/lib/browser.ts:44
  41 | export async function browserHmacSha256Sign(key, data) {
  42 |     const subtle = env.getSubtleCrypto();
  43 |     const cryptoKey = await browserImportKey(key, HMAC_BROWSER);
> 44 |     const signature = await subtle.sign({
  45 |         length: HMAC_LENGTH,
  46 |         name: HMAC_BROWSER,
  47 |     }, cryptoKey, data);

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
HaiDang666commented, Oct 13, 2021

Have u resolved this ?

Update:

I’ve solved this by using https because getSubtleCrypto returns global.crypto.subtle and in the insecure mode http, it’s undefined.

5reactions
benjaminlim00commented, Dec 3, 2021

I am facing the same error on IOS but on google chrome as well. After selecting metamask, it triggers the app to open but nothing happens after that

Read more comments on GitHub >

github_iconTop Results From Across the Web

web3modal.com iOS 15 breaks walletconnect (Metamask) #334
Go to wbe3modal.com; Click connect; Select WalletConnect; Tap Metamask; Approve Connection; Browser crashes. The following is from the developer ...
Read more >
Web3Modal
Web3Modal is an elegantly simple yet powerful library that helps you manage your multi-chain wallet ... Connect with MetaMask, Coinbase, and many more....
Read more >
Recently Active 'wallet-connect' Questions - Stack Overflow
Purpose: To log in to Web3.0 using metamask in iOS, and to save login sessions to maintain repeated logins. Problem: The current login...
Read more >
Celo Tutorials | Celo Documentation
With Web3modal, you can easily support injected providers like (Metamask, Brave Wallet, Dapper, Frame, Gnosis Safe, Tally, Web3 Browsers, etc) and WalletConnect ......
Read more >
Ethereum - John Beatty
Rank Score 3 8.6 Steve Randy Waldman @interfluidity 13 8.4 Jeff Coleman | Jeff.eth @technocrypto 23 8.3 Joey Wilcke @JoeyWilcke. Grid Games Co‑Founder
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found