fixed network selection (hex string) and icons

This commit is contained in:
hueso
2025-10-11 21:31:53 -03:00
parent 0ca05b106d
commit 2890a2e982
5 changed files with 12 additions and 10 deletions

View File

@@ -23,11 +23,12 @@ const checkNetwork = () => {
const switchNetwork = async () => {
try {
if (connectedWallet.value && connectedWallet.value.provider) {
let chainId = network.value.id.toString(16);
await connectedWallet.value.provider.request({
method: "wallet_switchEthereumChain",
params: [
{
chainId: network.value.id,
chainId: `0x${chainId}`,
},
],
});