hashgraph / hedera-hardhat-hethers

DEPRECATED Hardhat plugin for integration with hethers.js.
Apache License 2.0
6 stars 0 forks source link

`waitForDeployment` is not a function #42

Open LionsHabitat opened 1 year ago

LionsHabitat commented 1 year ago

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 commented 1 year ago

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!