Open UmitRock opened 6 months ago
@UmitRock Hey Use getContractAt instead of getContract: First use deployments.get() function as
// Get the Signer first for getContractAt():
const accounts = await ethers.getSigners(); // This will give array of signers
const Signer = accounts[0]; // This will give deployer signer
const Contract = await deployments.get("FundMe");
Now implement getContractAt() as:
const fundMe = await ethers.getContractAt( Contract.abi, Contract.address, signer);
Do the same for Mock. Hope it helps
i search all issues and discussion never found my solution even i did copied patrick contract level 7 same issues and even downgrade ether to v5 not work...
but contract Deployed Fundme on test net and node hardhat network too >>>>>>>>only have issues on testing fundme
thats FundMe.test.js code
and contract FundMe.sol code is :
i hope anyone help me and thanks :)