'Smart Contract Deployment is taking forever

I'm using Alchemy as Web3 Provider for deploying my Smart Contract with Hardhat. It stops when when its deploying the contract after it deployed the factory of the contract. (Ropsten Testnet)

const hre = require("hardhat"); //import the hardhat

async function main() {
  console.log("[4] Getting Deployer")
  const [deployer] = await ethers.getSigners(); //get the account to deploy the contract

  console.log("[+] Deploying contracts with the account:", deployer.address);

  console.log("[3] Getting Factory")
  const Factory = await hre.ethers.getContractFactory(
    "BlockchainNamingService"
  ); // Getting the Contract
  console.log("[2] Getting Smart Contract")
  const smartContract = await Factory.deploy(); //deploying the contract

  console.log("[1] Deploying Smart Contract")
  await smartContract.deployed(); // waiting for the contract to be deployed

  console.log("[FINISHED] Contract deployed to:", smartContract.address); // Returning the contract address on the rinkeby
}

main()
  .then(() => process.exit(0))
  .catch((error) => {
    console.error(error);
    process.exit(1);
  }); // Calling the function to deploy the contract

npx hardhat run scripts/deploy.js --network ropsten

Is there a problem on the network, on my contract or deploy script?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source