Open Imdavyking opened 1 year ago
Looks like pancakeswap site doesn't support Polygon chain (137).
If you want to switch Chain, you need to call this function
window.ethereum.setConfig({
ethereum:{
chainId: $chainId,
rpcUrl: "$rpcUrl",
address: "$address"
}
})
Then
window.ethereum.emitChainChanged($chainId)
thank you very much
this code base can not switch network in pancakeswap
window.ethereum.sendResponse($methodId, "137") window.ethereum.emitChainChanged("0x89") window.ethereum.setConfig({ ethereum:{ chainId: $chainId, rpcUrl: "$rpcUrl", address: "$address" } } )
این پایه کد نمی تواند شبکه را در پنکیک سوئیچ کند window.ethereum.sendResponse($methodId, "137") window.ethereum.emitChainChanged("0x89") window.ethereum.setConfig({ethereum:{chainId: $chainId، rpcUrl: "$rpcUrl"، آدرس: "$ad " } } )
this code base can not switch network in pancakeswap
window.ethereum.sendResponse($methodId, \"137\") window.ethereum.emitChainChanged("0x89") window.ethereum.setConfig({ ethereum:{ chainId: $chainId, rpcUrl: "$rpcUrl", address: "$address" } } )