Lesson 7 FundMe.test.js Withdraw() test error #5951
Unanswered
roychaadit
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hello @roychaadit I believe that ethers version you are using causing this issue. Try downgrading your ethers to ^5.5.3. I have also noticed your comment about (await getNamedAccounts()).deployer, which isn't true. You can prepare your setup like below and it will work perfectly fine: describe("FundMe", function () {
let fundMe
let mockV3Aggregator
let deployer
const sendValue = ethers.utils.parseEther("1")
beforeEach(async () => {
deployer = (await getNamedAccounts()).deployer
await deployments.fixture(["all"])
fundMe = await ethers.getContract("FundMe", deployer)
mockV3Aggregator = await ethers.getContract("MockV3Aggregator", deployer)
}) Notice I'm using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following is my code:
The following is the error I am getting:
can anyone help me find the source and solution of this error?
Beta Was this translation helpful? Give feedback.
All reactions