const transaction = await contract.deposit({ value: ethers.utils.parseEther("0.1") }) //sends 0.1 eth await transaction.wait()