ios 2.1.4 调用 window.ethereum.request 某一方法抛错,2.1.3正常

try {
await window.ethereum.request({
method: ‘wallet_switchEthereumChain’,
params: [{ chainId: ‘0x61’ }],
});
} catch (error) {
console.log(‘error’, error);
}

嗯 新版本在 尝试切换到 相同的链 返回的信息 会有问题,会在下个版本解决

1 个赞