Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
Hardhar Implemente un contrato inteligente de solidez usando el evento onClick en React

Me gustaría implementar mi contrato en la interfaz después de que un usuario haga clic en un botón. En la documentación de hardhat, normalmente tendría que ejecutar npx hardhat run scripts/deploy.js en mi terminal para implementar. ¿Es posible implementar en la interfaz?

El siguiente código es algo que me gustaría hacer.

 const hre = require("hardhat") // this will cause error const deployClick = async () => { setIsNoClicked(true); const ticketContract = await hre.ethers.getContractFactory("Greeter"); const ticket = await ticketContract.deploy("Hello, Hardhat!"); await ticket.deployed(); console.log("Ticket Contract deployed to:", ticket.address); }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!