-
THE ERROR Deploying, please wait... CODE: async function main() { main() Whenever i remove the await keyword at contractfactory.deploy it works, but if i put await it gives the error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Do this instead, remove 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. |
Beta Was this translation helpful? Give feedback.
Do this instead, remove
const contract = await contractFactory.deploy();
andconsole.log(contract);
Let me know if this works.