does anyone here knows why I cant switch to kovan network with this code?
const switchKovanNetwork = async () => {
try {
await window.ethereum.request({
method: "wallet_switchEthereumChain",
params: [{ chainId: "0x42" }],
});
} catch (switchError) {}
}