Skip to content

Commit

Permalink
delete old address, add scroll mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
haurog committed Oct 29, 2023
1 parent 63eedf5 commit 00afcc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/dapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ var web3 = new Web3(window.ethereum);
// contract address on Scroll mainnet:
const wcAddress = '0xDEfd37cFE93F8b50Ec4332BdacdaF4eAdfc78be3'
// const wcAddress = '0x51f217fEFC94CBD21C9f36E120C07D5Ba6205849' // Old address on rinkeby
// const wcAddress = '0xF06c47b7FeB65aF49dDD78c1816BD4f31c2d56F1' // old contract address
let userAddress;
let WarrantCanary;

Expand Down Expand Up @@ -40,7 +39,8 @@ async function createContractObject() {

async function checkNetworkInMetamask() {
let chainID = await ethereum.request({method: 'eth_chainId'});
let targetChainID = '0x8274f' // Scroll
// let targetChainID = '0x82750' // Scroll Mainnet
let targetChainID = '0x8274f' // Scroll Sepolia Testnet
if (chainID != targetChainID){
window.alert("This dapp only runs on scroll network. Please approve the switch to the correct network");
}
Expand Down

0 comments on commit 00afcc9

Please sign in to comment.