Skip to content

Lesson 09: Unit testing: fulfillRandomWords() - few questions #1627

Answered by ManuWeb3
ManuWeb3 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @alymurtazamemon and @adityabhattad2021 for taking this up.

The root cause of my "multiple instances got created" doubt is the ethers.js documentation below:

It says, contract.connect() returns new instance of the contract.

That's what led me to think that const accountConnectedRaffle = raffle.connect(accounts[i]) is returning a new instance in every iteration

So, am I misunderstanding the ether.js documentation ?

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@adityabhattad2021
Comment options

@alymurtazamemon
Comment options

@adityabhattad2021
Comment options

@alymurtazamemon
Comment options

@ManuWeb3
Comment options

Answer selected by alymurtazamemon
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