on https://replit.com add packages (same like in file package.json)
Add file Contract.json in folder src\utils (after compiling Contaract.sol, from folder "Artifacts" file Contract.json)
In src\App.json change:
- line #5 "import randomPic from './utils/RandomPic.json'"
- line # 11 const CONTRACT_ADDRESS =
- line #72 name ABI = const connectedContract = new ethers.Contract(CONTRACT_ADDRESS, randomPic.abi, signer);
- line #97 name ABI = const connectedContract = new ethers.Contract(CONTRACT_ADDRESS, randomPic.abi, signer);
- line #99 name function Mint = console.log("Going to pop wallet now to pay gas...") let nftTxn = await connectedContract.makeAnEpicNFT();