MetaMask / MetaMask/metamask-mobile

[Bug]: Swaps - When clicking Import token in Bitcoint Testnet the wallet breaks with the error `[Error: Invalid cross-chain swaps chainId: bip122:000000000933ea01ad0ee984209779ba] [Component Stack]`

Open
#25,948 2 comments 0 reactions 2 assignees Claimed by @salimtb View on GitHub
regression-RC-7.65.0 Sev2-normal team-assets type-bug
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

### Describe the bug

After selecting Bitcoin testnet, if I click on Assets the wallet breaks with the error `[Error: Invalid cross-chain swaps chainId: bip122:000000000933ea01ad0ee984209779ba] [Component Stack]`
Note: {"bitcoinTestnetsEnabled":false}, is not enabled in the Feature Flags at the moment, but reporting it for the case when it is // it's not possible to use this feature because of this bug

### Expected behavior

_No response_

### Screenshots/Recordings

Image

https://github.com/user-attachments/assets/d1794c88-96e1-45cf-b01f-86cb2f4c1165

### Steps to reproduce

1. Select Custom networks
2. Select Bitcoin testnet
3. Add Bitcoin testnet account
4.Click + (asset) --> see Wallet breaks

### Error messages or log output

```shell

```

### Where was this bug found?

Internal release testing

### Version

7.65.0

### Build number

3607

### Build type

None

### Device

Pixel 6

### Operating system

Android

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.