Skip to content

Lesson 9: Staging test is getting timeout error (Chainlink issue). #729

Answered by sanjayojha
sanjayojha asked this question in Q&A
Discussion options

You must be logged in to vote

Look like I am wrong in my above comment. We don't need await raffle.performUpkeep("0x"); in our staging test file. Since its keeper work to invoke it.

To me the error seems to be happening in performUpkeep method.

 function performUpkeep(
        bytes calldata /* performData */
    ) external override {
        (bool upkeepNeeded, ) = checkUpkeep(""); //This line is returning false.

        if (!upkeepNeeded) {
            revert Raffle__UpkeepNotNeeded(
                address(this).balance,
                s_players.length,
                uint256(s_raffleState)
            );
        }
        s_raffleState = RaffleState.Calculating;
        uint256 requestId = i_vrfCoordinator.requ…

Replies: 8 comments 16 replies

Comment options

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

Comment options

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

Comment options

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

Comment options

You must be logged in to vote
2 replies
@PatrickAlphaC
Comment options

@sanjayojha
Comment options

Answer selected by sanjayojha
Comment options

You must be logged in to vote
5 replies
@sanjayojha
Comment options

@Aesthetyx
Comment options

@sanjayojha
Comment options

@Aesthetyx
Comment options

@sanjayojha
Comment options

Comment options

You must be logged in to vote
3 replies
@sanjayojha
Comment options

@chopperttt
Comment options

@chopperttt
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@sanjayojha
Comment options

@alymurtazamemon
Comment options

@Abhishek-465
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
9 participants