bnb-chain / opbnb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add the "Switch to opBNB network" window prompt

tartsmart opened this issue · comments

Rationale

  1. When you try to list a minted NFT and the network in your wallet is not opBNB, there is currently an error message pop-up that reads:
    "Address "undefined" is invalid.
    Version: viem@1.21.3"
  2. There should instead be a window prompt pop-up that lets the user to switch the network to opBNB in their wallet.
  3. There should also be a "network switch" button in the website's UI, that says "WRONG NETWORK" if you're not on opBNB.

Implementation

This is a common feature that exists on many websites across the crypto space. Whenever there is an unsupported network, the UI tells you this, and whenever you try to execute something on the wrong network, it prompts you to switch to one of the supported networks.

Rationale

  1. When you try to list a minted NFT and the network in your wallet is not opBNB, there is currently an error message pop-up that reads:
    "Address "undefined" is invalid.
    Version: viem@1.21.3"
  2. There should instead be a window prompt pop-up that lets the user to switch the network to opBNB in their wallet.
  3. There should also be a "network switch" button in the website's UI, that says "WRONG NETWORK" if you're not on opBNB.

Implementation

This is a common feature that exists on many websites across the crypto space. Whenever there is an unsupported network, the UI tells you this, and whenever you try to execute something on the wrong network, it prompts you to switch to one of the supported networks.

@tartsmart Hi, which page are you referring to? Can you please send the URL?

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.

The issue is closed due to long inactivity. You can reopen it for further questions or comments.