Skip to content

Lesson 14 02-deploy error #5821

Answered by bbl4de
bbl4de asked this question in Q&A
Jul 8, 2023 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

I managed to solve the issue. I had to change few things for anyone with the same issue. Firstly, to prevent all the compatibility issues I just downloaded the latest versions with:

yarn add --dev hardhat @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers

Then after searching for any informations about vrfCoordinatorV2Mock.address in the new ethers, I found out that the name has changed to

- vrfCoordinatorV2Mock.address
+ vrfCoordinatorV2Mock.target

But then, I got another error with subscriptionId being undefined, resulting in "no emitted events" issue. I found a discussion from lesson 9 error and solved it by writing;

- subscriptionId = transactionReceipt.events[0].args.subId
+

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@alfaqi
Comment options

@shikhar229169
Comment options

@bbl4de
Comment options

@bbl4de
Comment options

Answer selected by bbl4de
@shikhar229169
Comment options

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