Skip to content

Lesson 7: FundMe.test.js >>> Error: expected 0 constructor arguments, got 2 [SOLVED] #275

Discussion options

You must be logged in to vote

@ali-thegilfoyle For some reason constructor arguments were deleted again from the MockV3Aggregator.json test file in artifacts.

Just added the missing arguments as such:

    {
      "type": "constructor",
      "payable": false,
      "inputs": [
        {
          "type": "uint8",
          "name": "decimals"
        },
        {
          "type": "int256",
          "name": "initialAnswer"
        }
      ]
    },

Replies: 2 comments 1 reply

Comment options

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

Comment options

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