Skip to content

[SOLVED] Lesson 7: ReferenceError: MockV3Aggregator is not defined #2150

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

You must be logged in to vote

it's now working. Found out that I wrote 'arguments' instead of 'args' in 00-deploy-mocks.js

 if (developmentChain.includes(network.name)) {
        log("Local network detected!")
        await deploy("MockV3Aggregator", {
            contract: MockV3Aggregator,
            from: deployer,
            log: true,
            arguments: [DECIMAL, INITIAL_ANSWER], // changed it to **args**
        })
        log("LOGGGING MOCKS DEPLOYED")
        log("******************************************")
    }

Replies: 1 comment

Comment options

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