staging test fails #6417
khushbusandhu
started this conversation in
General
Replies: 0 comments
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.
-
hey, here is my staging test
const { getNamedAccounts, network, ethers } = require("hardhat"); const { developementChains } = require("../../helper-hardhat-config"); const { assert } = require("chai"); developementChains.includes(network.name) ? describe.skip : describe("FundMe", async function () { let fundMe; let deployer; const sendValue = ethers.parseEther("1"); // 1 ETH beforeEach(async function () { deployer = (await getNamedAccounts()).deployer; const contracts = await deployments.fixture(["all"]); const signer = await ethers.getSigner(deployer); const fundMeAddress = contracts["FundMe"].address; fundMe = await ethers.getContractAt("FundMe", fundMeAddress, signer); }); it("allows people to fund and withdraw", async function () { await fundMe.fund({ value: sendValue }); await fundMe.withdraw(); const endingBalance = await ethers.provider.getBalance(fundMe.target); assert.equal(endingBalance.toString(), "0"); }); });and i am getting this error
help me with this
Beta Was this translation helpful? Give feedback.
All reactions