You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesi贸n a prueba de IA

Antes: $249

Currency
$209
Suscr铆bete

Termina en:

1 D铆as
7 Hrs
21 Min
51 Seg

Desplegando el Smart-contract localmente con Hardhat

8/19
Resources

Contributions 2

Questions 0

Sort by:

Want to see more contributions, questions and answers from the community?

Desplegando el Smart-contract localmente con Hardhat

npx hardhat node : levantamos un nodo de ethereum de forma local.

npx hardhat run --network localhost scripts/deploy.js : 

El c贸sigo del deploy en esta parte:

const hre=require("hardhat");

async function main(){
  const PlatziFood = await ethers.getContractFactory("PlatziFood");
  const platziFood = await PlatziFood.deploy();

  await platziFood.deployed();

  console.log("PlatziFood deployed to:", platziFood.address)

}

main().then(()=>
  process.exit(0)
  ).catch((error)=>{
    console.error(error);
    process.exit(1);
  });