We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 638fd58 commit f60912fCopy full SHA for f60912f
frontend/src/components/Dapp.js
@@ -345,7 +345,7 @@ export class Dapp extends React.Component {
345
}
346
347
async _switchChain() {
348
- const chainIdHex = `0x${HARDHAT_NETWORK_ID.toString(16)}`
+ const chainIdHex = `0x${parseInt(HARDHAT_NETWORK_ID, 10).toString(16)}`
349
await window.ethereum.request({
350
method: "wallet_switchEthereumChain",
351
params: [{ chainId: chainIdHex }],
0 commit comments