Skip to content

Lesson 9 [Smart Contract Lottery] - Testing RaffleNotOpen() #1754

Closed Answered by EngrPips
DS-Coding0 asked this question in Q&A
Discussion options

You must be logged in to vote

Below is the test stack trace from when I ran the same test.

Traces:
  [156571] LotteryTest::testCantEnterWhenRaffleIsCalculating()
    ├─ [0] VM::prank(player: [0x44E97aF4418b7a17AABD8090bEA0A471a366305C])
       └─  [Return] 
    ├─ [47808] Lottery::enter{value: 10000000000000000}()
       ├─ emit enteredLottery(player: player: [0x44E97aF4418b7a17AABD8090bEA0A471a366305C])
       └─  [Stop] 
    ├─ [0] VM::warp(32)
       └─  [Return] 
    ├─ [0] VM::roll(2)
       └─  [Return] 
    ├─ [75119] Lottery::performUpkeep(0x307830)
       ├─ [0] console::log("The address of the lottery contract is: ", Lottery: [0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0]) [staticcall]
          └─  

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@DS-Coding0
Comment options

@EngrPips
Comment options

@DS-Coding0
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DS-Coding0
Comment options

You must be logged in to vote
1 reply
@EngrPips
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants