Skip to content

Error: could not detect network #984

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

You must be logged in to vote

Do this instead, remove const contract = await contractFactory.deploy(); and console.log(contract);

  const contract = await contractFactory.deploy()
    const deploymentReceipt = await contract.deployTransaction.wait(1) // Waits 1 block
    console.log(`Contract deployed to ${contract.address}`)

Let me know if this works.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Adnanebds
Comment options

@Adnanebds
Comment options

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