Open LionsHabitat opened 1 year ago
Upon running something like this errors in: TypeError: collectionImpl.waitForDeployment is not a function
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 })
npx hardhat run script/ScriptName.s.ts --network testnet
No response
testnet
Latest
macOS
As a follow up to this. If I comment out await collectionImpl.waitForDeployment(), I'll get an error: Collection Implementation: undefined
await collectionImpl.waitForDeployment()
Collection Implementation: undefined
So it seems the contract is not deployed nor returned.
Thanks!
Description
Upon running something like this errors in:
TypeError: collectionImpl.waitForDeployment is not a function
Steps to reproduce
npx hardhat run script/ScriptName.s.ts --network testnet
Additional context
No response
Hedera network
testnet
Version
Latest
Operating system
macOS