We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
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!
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: