Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
saketongit committed Oct 3, 2024
1 parent c2a341d commit dfb1153
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ <h5>Recovered Binance Address</h5>
// setMetaMaskStatus(window.ethereum.isConnected())
window.ethereum.on("chainChanged", (chainId) => {
window.currentChainId = chainId;
if (chainId !== "0x1") {
if (chainId !== "0x38") {
renderError("Please switch MetaMask to Binance Mainnet");
} else {
router.routeTo(location.hash);
Expand Down Expand Up @@ -930,7 +930,7 @@ <h2>Check Binance, USDC and USDT balance</h2>
);
if (
window.ethereum &&
!(window.currentChainId && window.currentChainId === "0x1")
!(window.currentChainId && window.currentChainId === "0x38")
) {
renderError("Please switch MetaMask to Binance Mainnet");
}
Expand Down Expand Up @@ -1478,7 +1478,7 @@ <h4>Receiver</h4>
);
if (
window.ethereum &&
!(window.currentChainId && window.currentChainId === "0x1")
!(window.currentChainId && window.currentChainId === "0x38")
) {
renderError("Please switch MetaMask to Binance Mainnet");
}
Expand Down

0 comments on commit dfb1153

Please sign in to comment.