Skip to content

Lesson14 Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="vrfCoordinatorV2", value=undefined, code=INVALID_ARGUMENT, version=abi/5.7.0) #6265

Answered by Nlferu
Si-sivan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Siaeua

So the issue is coming from ethers version as you are using ethers v6, which has different syntax than ethers v5. Whole course is built on ethers v5, so please either downgrade your ethers as below to stick to v5 or edit your code to match ethers v6 -> check their documentation but for getting address for example instead of .address property you should be using getAddress() function.

To downgrade your ethers to match course:

  1. Delete yarn.lock and node_modules
  2. Copy package.json from course -> ensure it has "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13" in it.
  3. Install your new packages with running yarn command.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Si-sivan
Comment options

@Nlferu
Comment options

Answer selected by Si-sivan
@Si-sivan
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
2 participants