Skip to content

LESSON 14: expected 0 constructor arguments, got 6 #2635

Discussion options

You must be logged in to vote

@krakxn Solved it by adding constructor arguments manually to artifacts as seen below but would love to understand why the constructor arguments weren't automatically included to artifacts. Thank you!

{
  "_format": "hh-sol-artifact-1",
  "contractName": "RandomIpfsNFT",
  "sourceName": "contracts/RandomIpfsNFT.sol",
  "abi": [
    {
      "type": "constructor",
      "payable": false,
      "inputs": [
        {
          "type": "address",
          "name": "vrfCoordinatorV2"
        },
        {
          "type": "uint64",
          "name": "subscriptionId"
        },
        {
          "type": "bytes32",
          "name": "gasLane"
        },
        {
          "type": "uint32",
   …

Replies: 3 comments 2 replies

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 DorianDaSilva
Comment options

You must be logged in to vote
2 replies
@DorianDaSilva
Comment options

@RoboCrypter
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