Skip to content

error : Error: expected 6 constructor arguments, got 5 #1072

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

You must be logged in to vote

Let me know if this solves your problem:

  • Refactor args to arguments in this snippet:
const args = [
        entranceFee,
        gasLane,
        callbackGasLimit,
        interval,
        subscriptionId,
        vrfCoordinatorV2Address,
    ]
  • Then follow Ali's order precedence below as it is in the constructor
  • Following the above should fix your problem

Replies: 3 comments 7 replies

Comment options

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

Comment options

You must be logged in to vote
5 replies
@chrismogab
Comment options

@krakxn
Comment options

@chrismogab
Comment options

@krakxn
Comment options

@chrismogab
Comment options

Answer selected by chrismogab
Comment options

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