Skip to content

Lesson 10: I am not getting the recent winner #4995

Answered by Nlferu
umairahmed88 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @umairahmed88

As you are running it on localhost network, so you should define it in your hardhat.config.js file like below:

    networks: {
        hardhat: {
            chainId: 31337,
            blockConfirmations: 1,
            // gasPrice: 130000000000,
        },
        localhost: {
            chainId: 31337,
            blockConfirmations: 1,
        },

It also seems like your checkUpkeep function throws false, so you can take a look at that too to print if it throws false or true and correct it if it throws fail.

Replies: 3 comments 4 replies

Comment options

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

Comment options

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

Answer selected by umairahmed88
Comment options

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

@shureedshazzad
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
4 participants