diff --git a/index.js b/index.js index c46d475..d1fcf8b 100644 --- a/index.js +++ b/index.js @@ -138,7 +138,7 @@ async function enableMetamaskOnSepolia() { //Get account details from Metamask wallet. getAccount(); //Check if user is on the Sepolia testnet. If not, alert them to change to Sepolia. - if(window.ethereum.networkVersion != baseSepoliaChainId){ + if(window.ethereum.net_version != baseSepoliaChainId){ // alert("You are not on the Sepolia Testnet! Please switch to Sepolia and refresh page.") try{ await window.ethereum.request({