Replies: 3 comments 8 replies
-
still stuck here. I've tried everything all the ai sites and still don't undertand how to fix with my limited knowledge. Should i just skip this test and continue with the lesson? please help |
Beta Was this translation helpful? Give feedback.
1 reply
-
Appreciate the input but it didn't work. Instead of hoax I changed it to deal and it seems to have worked! I'm moving on lol |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
can't seem to figure out what the problem is here. chat gpt says its hoax but code looks exactly as Patrick is guiding.
here is the error:
'''
Running 1 test for test/FundMeTest.t.sol:FundMeTest
[FAIL. Reason: cannot overwrite a prank until it is applied at least once] testWithdrawFromMultipleFunders() (gas: 6096)
Traces:
[6096] FundMeTest::testWithdrawFromMultipleFunders()
├─ [0] VM::prank(user: [0x6CA6d1e2D5347Bfab1d91e883F1915560e09129D])
│ └─ ← ()
├─ [0] VM::deal(0x0000000000000000000000000000000000000001, 100000000000000000 [1e17])
│ └─ ← ()
├─ [0] VM::prank(0x0000000000000000000000000000000000000001)
│ └─ ← cannot overwrite a prank until it is applied at least once
└─ ← cannot overwrite a prank until it is applied at least once
Test result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 1.91ms
Ran 1 test suites: 0 tests passed, 1 failed, 0 skipped (1 total tests)
Failing tests:
Encountered 1 failing test in test/FundMeTest.t.sol:FundMeTest
[FAIL. Reason: cannot overwrite a prank until it is applied at least once] testWithdrawFromMultipleFunders() (gas: 6096)
'''
heres the full code
'''solidity
'''
Beta Was this translation helpful? Give feedback.
All reactions