Urgent help!
Our dapp was working well until all of the sudden we started to get a âUncaught (in promise) TypeError: Cannot read properties of undefined (reading âContractâ)â error
This is the exact line that throws it:
let contract = new web3.eth.Contract(abi, CONTRACT_ADDRESS);
This is whatâs around that line:
window.web3 = await Moralis.Web3.enableWeb3();
let abi = await getAbi();
let contract = new web3.eth.Contract(abi, CONTRACT_ADDRESS);
Our code hasnât changed and everything was working properly until about 4 hours ago. What could be the reason?