reown-com / appkit

The full stack toolkit to build onchain app UX
https://reown.com/appkit
Apache License 2.0
4.95k stars 1.41k forks source link

[bug] Metamask connection error [CRITICAL] #3198

Closed vis1onn closed 2 weeks ago

vis1onn commented 2 weeks ago

Link to minimal reproducible example

this.metadata = { name: document.title, description: 'Web3 Application', url: https://${window.location.host}, icons: ['https://avatars.githubusercontent.com/u/179229932'], }; this.modal = createAppKit({ adapters: [new EthersAdapter()], networks: [ mainnet, bsc, polygon, avalanche, arbitrum, optimism, fantom, base, zkSync, ], metadata: this.metadata, projectId: import.meta.env.VITE_APPKIT_PROJECT_ID, features: { email: false, socials: [], analytics: true, debug: true, }, debug: true, });

Summary

MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3

The option to connect metamask has disappeared from the list of options image

an error appeared in the console image

20 minutes ago everything worked no changes were made, it just stopped working with this error

not working also with 1.1.8 version

List of related npm package versions

"@reown/appkit": "^1.2.1", "@reown/appkit-adapter-ethers": "^1.2.1",

vis1onn commented 2 weeks ago

full code

import { createAppKit } from '@reown/appkit'; import { EthersAdapter } from '@reown/appkit-adapter-ethers'; import { mainnet, bsc, polygon, avalanche, arbitrum, optimism, fantom, base, zkSync, } from '@reown/appkit/networks';

this.metadata = { name: document.title, description: 'Web3 Application', url: https://${window.location.host}, icons: ['https://avatars.githubusercontent.com/u/179229932'], };

this.modal = createAppKit({
  adapters: [new EthersAdapter()],
  networks: [
    mainnet,
    bsc,
    polygon,
    avalanche,
    arbitrum,
    optimism,
    fantom,
    base,
    zkSync,
  ],
  metadata: this.metadata,
  projectId: import.meta.env.APPKIT_PROJECT_ID,
  features: {
    email: false,
    socials: [],
    analytics: true,
  },
});

connect() { this.modal.open(); }

vis1onn commented 2 weeks ago

SCAM link above

tomiir commented 2 weeks ago

@vis1onn Thank you for the report. Will relay this to cloud team to review if something is off with the explorer where we get the wallets from.

Question: What network were you on when this happened? This might help debug this 🙏

Also reported the comment above. 🫡

vis1onn commented 2 weeks ago

@tomiir thanks for the help, I didn't find what the problem was, but I found that only I have this problem