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

BTC Wallets: OneKey Signet switch network #106

Open
gbarkhatov opened this issue Dec 11, 2024 · 0 comments
Open

BTC Wallets: OneKey Signet switch network #106

gbarkhatov opened this issue Dec 11, 2024 · 0 comments
Assignees

Comments

@gbarkhatov
Copy link
Contributor

gbarkhatov commented Dec 11, 2024

window.$onekey.btcwallet.switchNetwork does not support "signet" network at the moment (or might support it in the latest update).
We need to apply this logic before we're getting the address

Reference: #102 (comment)

    // switch (this.networkEnv) {
    //   case Network.MAINNET:
    //     await this.bitcoinNetworkProvider.switchNetwork(
    //       INTERNAL_NETWORK_NAMES.mainnet,
    //     );
    //     break;
    //   case Network.TESTNET:
    //     await this.bitcoinNetworkProvider.switchNetwork(
    //       INTERNAL_NETWORK_NAMES.testnet,
    //     );
    //     break;
    //   case Network.SIGNET:
    //     await this.bitcoinNetworkProvider.switchNetwork(
    //       INTERNAL_NETWORK_NAMES.signet,
    //     );
    //     break;
    //   default:
    //     throw new Error("Unsupported network");
    // }
@gbarkhatov gbarkhatov self-assigned this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant