rainbow-me / rainbowkit

The best way to connect a wallet 🌈 🧰
https://rainbowkit.com
MIT License
2.41k stars 640 forks source link

[bug] MetaMask Mobile: WalletConnect v2 is not working on iOS #1303

Closed yeshealer closed 1 year ago

yeshealer commented 1 year ago

Is there an existing issue for this?

RainbowKit Version

0.12.4

wagmi Version

0.12.6

Current Behavior

https://github.com/rainbow-me/rainbowkit/assets/88679102/6ef3313a-484c-44ea-92d4-663c83435cef

https://github.com/rainbow-me/rainbowkit/assets/88679102/fda274a5-cf30-4bcc-91c6-dac49663dbdd

Expected Behavior

No response

Steps To Reproduce

No response

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

https://feta-models.vercel.app

Anything else?

No response

DanielSinclair commented 1 year ago

@yeshealer This is unfortunately an issue with MetaMask itself. I have been told by WalletConnect that the MetaMask team is investigating and an update should be available soon.

adrianotadao commented 1 year ago

@yeshealer this is working well on rainbowkit 1.0.1

eth0izzle commented 1 year ago

Also having the same issue. @yeshealer what versions of RainbowKit, WAGMI, etc are you using? And what does your code look like?

yeshealer commented 1 year ago

I'm using @@. and @. on @.***

// wagmi imports import { getDefaultWallets, RainbowKitProvider, ConnectButton, lightTheme } from **@./rainbowkit'; import { useAccount, configureChains, createClient, WagmiConfig, useNetwork } from 'wagmi'; import { polygonMumbai, avalancheFuji } from 'wagmi/chains'; import { alchemyProvider } from @./core/providers/alchemy' import { publicProvider } from @.***/core/providers/public'

const sepolia = { id: 11155111, name: 'Sepolia', network: 'sepolia', nativeCurrency: { decimals: 18, name: 'Sepolia', symbol: 'ETH' }, rpcUrls: { public: { http: [' https://ethereum-sepolia.blockpi.network/v1/rpc/public '] }, default: { http: ['https://rpc2.sepolia.org'] }, }, blockExplorers: { etherscan: { name: 'Sepolia', url: 'https://sepolia.etherscan.io/' }, default: { name: 'Sepolia', url: 'https://sepolia.etherscan.io/' }, }, contracts: { multicall3: { address: '0xca11bde05977b3631167028862be2a173976ca11', blockCreated: 11_907_934, }, }, }

const { chains, provider } = configureChains( [avalancheFuji, sepolia, polygonMumbai], [ alchemyProvider({ apiKey: 'Y4RO5waXb2A92F2h8YaQs_EduUoB5E50', weight: 1 }), publicProvider({ weight: 2 }) ] );

const { connectors } = getDefaultWallets({ appName: 'My RainbowKit App', projectId: 'bc594665ad42a77e06d48aa5d82d1a91', chains });

const wagmiClient = createClient({ autoConnect: true, connectors, provider }) function App() { ... return (

// ** There are routes here
);

}

My code looks like above...

On Tue, Jun 27, 2023 at 6:15 PM Paul @.***> wrote:

Also having the same issue. @yeshealer https://github.com/yeshealer what versions of RainbowKit, WAGMI, etc are you using? And what does your code look like?

— Reply to this email directly, view it on GitHub https://github.com/rainbow-me/rainbowkit/issues/1303#issuecomment-1609109748, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVESFPR37R5CL5VSKFSCL63XNKQDPANCNFSM6AAAAAAZLCI7AY . You are receiving this because you were mentioned.Message ID: @.***>

intergalacticspacehighway commented 1 year ago

We're facing same issue. I think it started happening with the latest Metamask 7.0.1. Connecting with rainbowkit on rainbowkit's site doesn't work with Metamask as well. The issue is reproducible with Rainbowkit 1.0.3.

adrianotadao commented 1 year ago

We're facing same issue. I think it started happening with the latest Metamask 7.0.1. Connecting with rainbowkit on rainbowkit's site doesn't work with Metamask as well. The issue is reproducible with Rainbowkit 1.0.3.

@intergalacticspacehighway check this out https://github.com/rainbow-me/rainbowkit/issues/1262#issuecomment-1601598463 we need metamask team to fix it. 😢

DanielSinclair commented 1 year ago

0.12.17 and 1.0.5 are now available with a fix for this MetaMask issue.

yeshealer commented 1 year ago

thanks

On Fri, Jul 7, 2023 at 1:17 AM Daniel Sinclair @.***> wrote:

0.12.17 https://github.com/rainbow-me/rainbowkit/releases/tag/%40rainbow-me%2Frainbowkit%400.12.17 and 1.0.5 https://github.com/rainbow-me/rainbowkit/releases/tag/%40rainbow-me%2Frainbowkit%401.0.5 are now available with a fix for this MetaMask issue.

— Reply to this email directly, view it on GitHub https://github.com/rainbow-me/rainbowkit/issues/1303#issuecomment-1624463046, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVESFPQT6ODFJEIT2NQQEVTXO5ITHANCNFSM6AAAAAAZLCI7AY . You are receiving this because you were mentioned.Message ID: @.***>