Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waitForDeployment is not a function #42

Open
LionsHabitat opened this issue Aug 16, 2023 · 1 comment
Open

waitForDeployment is not a function #42

LionsHabitat opened this issue Aug 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@LionsHabitat
Copy link

LionsHabitat commented Aug 16, 2023

Description

Upon running something like this errors in: TypeError: collectionImpl.waitForDeployment is not a function

import { hethers } from 'hardhat'

const main = async () => {
    const CollectionImplV1 = await hethers.getContractFactory('CollectionImplV1')

    const collectionImpl = await CollectionImplV1.deploy()
    await collectionImpl.waitForDeployment()

    console.log(`Collection Implementation: ${collectionImpl.target}`)
}

main().catch((error) => {
    console.error(error)
    process.exitCode = 1
})

Steps to reproduce

npx hardhat run script/ScriptName.s.ts --network testnet

Additional context

No response

Hedera network

testnet

Version

Latest

Operating system

macOS

@LionsHabitat LionsHabitat added the bug Something isn't working label Aug 16, 2023
@LionsHabitat
Copy link
Author

LionsHabitat commented Aug 16, 2023

As a follow up to this. If I comment out await collectionImpl.waitForDeployment(), I'll get an error:
Collection Implementation: undefined

So it seems the contract is not deployed nor returned.

Thanks!

@LionsHabitat LionsHabitat changed the title waitForDeployment is not a function waitForDeployment is not a function Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant