Replies: 3 comments 10 replies
-
@t3reetan await fundMe.fund({ value: sendValue });
const tx = await fundMe.withdraw();
await tx.wait(1);
const endingBalance = await ethers.provider.getBalance(
fundMe.address
);
assert.equal(endingBalance.toString(), "0"); try this |
Beta Was this translation helpful? Give feedback.
7 replies
-
Ok got it. I did this: await fundMeContract.fund({ value: sendValue });
const tx = await fundMeContract.withdraw();
await tx.wait(1);
const endingBalance = await ethers.provider.getBalance(
fundMeContract.address
);
assert.equal(endingBalance.toString(), "0"); and it still returns me the same error. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@t3reetan Make a repo and reply with the link (I noticed Ali made some changes, be sure to push them to the GitHub repo) |
Beta Was this translation helpful? Give feedback.
3 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.
-
Here is my
FundMe.staging.test.ts
code for context:I'm following what Patrick did at https://youtu.be/gyMwXuJrbJQ?t=44258 but with some of my own code modifications.
I first deployed the
FundMe
contract by runningyarn hardhat deploy --network rinkeby
. Following that, I ranyarn hardhat test --network rinkeby
but was returned an error that looks like this (see image below).I've also tried changing up the
RINKEBY_RPC_URL
but to no avail.Anyone has any idea why?
Beta Was this translation helpful? Give feedback.
All reactions