Skip to content

Lesson 10 mockOffchain.js #1110

Answered by krakxn
Ed-Marcavage asked this question in Q&A
Jul 19, 2022 · 3 comments · 8 replies
Discussion options

You must be logged in to vote

"when I console.log(network.config.chainId) it is undefined." If you do not have it, add these in hardhat.config.js and then run again:

hardhat: {
            // // If you want to do some forking, uncomment this
            // forking: {
            //   url: MAINNET_RPC_URL
            // }
            chainId: 31337,
        },
        localhost: {
            chainId: 31337,
        },

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@Ed-Marcavage
Comment options

@alymurtazamemon
Comment options

@alymurtazamemon
Comment options

@Ed-Marcavage
Comment options

Comment options

You must be logged in to vote
4 replies
@Ed-Marcavage
Comment options

@krakxn
Comment options

@Ed-Marcavage
Comment options

@oojoseph67
Comment options

Answer selected by Ed-Marcavage
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants