Ive developed an easy dontaion web app using Kovan. Lastly, ive added chain check, allowing only Kovan. When someone is on another chain, i just suggest to change chain with:
window.ethereum.request({
method: 'wallet_switchEthereumChain',
params: [{ chainId: '0x2A' }],
});
Here comes the problem: it works, but the logo on MetaMask is a question point, but it is supposed to be full purple.
Everything works great and it does not even ask to add a new chain, it looks like theres two linked Kovan testnet: they are two, but work as one.
Ive tried with couple other chains and they dont have the same issue.
(Here working test to check on your own: http://nonnopinto.altervista.org/)
Ive developed an easy dontaion web app using Kovan. Lastly, ive added chain check, allowing only Kovan. When someone is on another chain, i just suggest to change chain with:
window.ethereum.request({
method: 'wallet_switchEthereumChain',
params: [{ chainId: '0x2A' }],
});
Here comes the problem: it works, but the logo on MetaMask is a question point, but it is supposed to be full purple.
Everything works great and it does not even ask to add a new chain, it looks like theres two linked Kovan testnet: they are two, but work as one.
Ive tried with couple other chains and they dont have the same issue.
(Here working test to check on your own: http://nonnopinto.altervista.org/)