Skip to content

Lessson:7 : Error while deploying Mocks at 10:49.[SOLVED] #932

Answered by krakxn
ritesh798 asked this question in Q&A
Discussion options

You must be logged in to vote
  • This should be in your hardhat.config.js file:
namedAccounts: {
        deployer: {
            default: 0, // here this will by default take the first account as deployer
            1: 0, // similarly on mainnet it will take the first account as deployer. Note though that depending on how hardhat network are configured, the account 0 on one network can be different than on another
        },
  • This should be there in your helper-hardhat.config.js file, and also correct the typo (rinkby) in it to rinkeby:
31337: {
        name: "localhost",
    },
  • And lastly, copy directly my changes for your deploy-mocks file:
const { network } = require("hardhat")
const {
    developmentChains,
   …

Replies: 2 comments 2 replies

Comment options

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

Answer selected by alymurtazamemon
Comment options

You must be logged in to vote
1 reply
@ritesh798
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
3 participants