Switching chains with uppercase chain ID hex does not work #25707
Labels
feature/web3/wallet/core
feature/web3/wallet/dapps
feature/web3/wallet
Integrating Ethereum+ wallet support
OS/Android
Fixes related to Android browser functionality
OS/Desktop
priority/P3
The next thing for us to work on. It'll ride the trains.
QA Pass - Android ARM
QA Pass - Android Tab
QA Pass-Linux
QA Pass-macOS
QA Pass-Win64
QA/Yes
release-notes/include
Milestone
Description
Try to switch to Avalanche network via wallet_switchEthereumChain API fails when chain_id param is 0xA86A, and only works if it is passed as 0xa86a.
Steps to Reproduce
Problem 1:
window.ethereum.request({method:'wallet_switchEthereumChain', params: [{chainId: '0xA86A'}]})
Problem 2:
0xa86A
instead of0xa86a
. Save.Actual result:
Problem 1:
And only
window.ethereum.request({method:'wallet_switchEthereumChain', params: [{chainId: '0xa86a'}]})
works.Problem 2:
Gives an error like this: "Request for method 'eth_chainId' on https://api.avax.network/ext/bc/C/rpc failed"
Expected result:
Problem 1:
Wallet panel should prompt user the request for switching to Avalanche network.
Problem 2:
It should save with no errors.
Reproduces how often:
Always
Desktop Brave version:
Android Device details:
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
The text was updated successfully, but these errors were encountered: