We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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" } } )
The text was updated successfully, but these errors were encountered:
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)
Sorry, something went wrong.
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" } } )
No branches or pull requests
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"
}
}
)
The text was updated successfully, but these errors were encountered: