How are you deploying your application? (if relevant)
Deploying it on Adnroid
Describe the Bug
I am trying to connect with bnb or Polygon tesnet chain ids but failing to do so mainnet is connecting and its working but testnet couldnt work Metamask not switching to the testnet i am using this chain ids BNB 0x61 Polygon 0x13881 also sharing the code snippet
` public async void ConnectWith()
{
var paramsArray = new object[] {
new ChainIdObj()
{
ChainId = "0x13881"
}
};
var result = await MetaMaskUnity.Instance.ConnectWith<string>(RpcMethods.WalletSwitchEthereumChain, paramsArray);
Debug.Log(result);
}`
Expected Behavior
Expected behavior should testnet should be connected or if its not supported an exception should be thrown rather than its connecting with current chain that metamask has selected.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
SDK
Unity
Provide environment information
using Unity 2021.3.14
MetaMask SDK Version
unity sdk latest on asset store
MetaMask Mobile app Version
unity sdk latest on asset store
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Deploying it on Adnroid
Describe the Bug
I am trying to connect with bnb or Polygon tesnet chain ids but failing to do so mainnet is connecting and its working but testnet couldnt work Metamask not switching to the testnet i am using this chain ids BNB 0x61 Polygon 0x13881 also sharing the code snippet ` public async void ConnectWith() { var paramsArray = new object[] { new ChainIdObj() { ChainId = "0x13881" } };
Expected Behavior
Expected behavior should testnet should be connected or if its not supported an exception should be thrown rather than its connecting with current chain that metamask has selected.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
No response
To Reproduce
conenct with bnb and polygon testnet chain ids