I am following the casino dapp from https://github.com/MoralisWeb3/demo-apps/tree/land-registry/casino-dapp however im am running into the following error when placing a bet.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Contract')
at renderApp (main.js:48:36)
async function renderApp(){
document.getElementById("register").style.display = "none";
document.getElementById("app").style.display = "block";
window.web3 = await Moralis.enableWeb3();
window.contract = new web3.eth.Contract(contractAbi, CONTRACT_ADDRESS);
updateStats();
}