Skip to content

Lesson 7: fund.js - Error: cannot estimate gas; #894

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

You must be logged in to vote

There was an issue in my 00-deploy-mocks.js

It looks like the

const INITIAL_PRICE = "200000000000"

may have fixed the issue.

ORIGINAL:

const { network } = require("hardhat")
const {
    developmentChains,
    DECIMALS,
    INITIAL_ANSWER,
} = require("../helper-hardhat-config")

module.exports = async ({ getNamedAccounts, deployments }) => {
    const { deploy, log } = deployments
    const { deployer } = await getNamedAccounts()

    if (developmentChains.includes(network.name)) {
        log("Local network detected...deploying mocks")

        await deploy("MockV3Aggregator", {
            contract: "MockV3Aggregator",
            from: deployer,
            log: true,
            args: [

Replies: 4 comments 13 replies

Comment options

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

@Darlington02
Comment options

@dgbweb3
Comment options

Comment options

You must be logged in to vote
10 replies
@alymurtazamemon
Comment options

@dgbweb3
Comment options

@alymurtazamemon
Comment options

@alymurtazamemon
Comment options

@dgbweb3
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dgbweb3
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