Update index.html
Some checks failed
Workflow push to Dappbundle / Build (push) Has been cancelled

This commit is contained in:
SaketAnand 2024-10-03 14:12:53 +05:30
parent c2a341da6f
commit dfb11534db

View File

@ -772,7 +772,7 @@
// 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);
@ -930,7 +930,7 @@
);
if (
window.ethereum &&
!(window.currentChainId && window.currentChainId === "0x1")
!(window.currentChainId && window.currentChainId === "0x38")
) {
renderError("Please switch MetaMask to Binance Mainnet");
}
@ -1478,7 +1478,7 @@
);
if (
window.ethereum &&
!(window.currentChainId && window.currentChainId === "0x1")
!(window.currentChainId && window.currentChainId === "0x38")
) {
renderError("Please switch MetaMask to Binance Mainnet");
}