Open LeoFranklin015 opened 1 year ago
@LeoFranklin015 , hlo dear how are you? I hope you are doing fine . So now lets come to the issue. Look! Here is the problem , you are not awaiting the fundMe = ethers.getContract("FundMe", deployer); it should be like this:- fundMe = await ethers.getContract("FundMe", deployer); change it accordingly and thank me later.
and change :- await expect(fundMe.fund()).to.be.revertedWithCustomError( "You need to spend more ETH!") with await expect(fundMe.fund()).to.be.revertedWith( "You need to spend more ETH!"
Discussed in https://github.com/smartcontractkit/full-blockchain-solidity-course-js/discussions/1257