Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Parse Out Mainnet / Testnet in Bridge #2823

Open
monaiuu opened this issue Feb 17, 2025 · 0 comments · May be fixed by #2850
Open

[TASK] Parse Out Mainnet / Testnet in Bridge #2823

monaiuu opened this issue Feb 17, 2025 · 0 comments · May be fixed by #2850
Assignees

Comments

@monaiuu
Copy link
Contributor

monaiuu commented Feb 17, 2025

Description

Currently, the network selection modal in the bridge component displays a combined list of mainnet and testnet networks. This issue proposes separating the network selection into distinct mainnet and testnet options, ensuring consistency with the overall DApp's network context and the user's connected wallet.

Requirements

  • The network selection modal should only display networks appropriate for the current mode (i.e., only mainnet networks in mainnet mode, and only testnet networks in testnet mode).
  • The initial mode should be determined by the overall DApp's connection state:
    • If the DApp is initialized in testnet mode (e.g., the user landed on a testnet-specific URL or the DApp is configured to default to testnet), the bridge should start in testnet mode.
    • If the DApp is initialized in mainnet mode, the bridge should start in mainnet mode.
  • The bridge should also respect the user's wallet connection:
    • If the user's connected wallet is connected to a testnet network (e.g., a Tangle testnet), the bridge should automatically switch to testnet mode.
    • If the user's connected wallet is connected to a mainnet network, the bridge should automatically switch to mainnet mode.

Screenshot

(curent issue: need to parse out mainnet vs. testnet)
Image

@monaiuu monaiuu converted this from a draft issue Feb 17, 2025
@devpavan04 devpavan04 moved this from Planning 🗺️ to Building 🏗️ in Webb Universe Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Building 🏗️
Development

Successfully merging a pull request may close this issue.

2 participants