Giter Club home page Giter Club logo

hellohardhatreact's Introduction

helloHardhatReact (Fullstack DApp)

Getting started with hardhat and react

  1. start react app: cd client npm start

  2. start local test bc from hardhat (use another terminal) cd blockchain (maybe you need to install hardhat ethers and waffle beforehand) npx hardhat node

  3. deploy greeter to your local bc (use another terminal) npx hardhat run scripts/deploy.js --network localhost

  4. install MetaMask (please use a chromium browser) and import an Account from your local bc -> use a copy of one of the private keys from your local test blockchain to


when you run into following errors:

  1. Nonce too high. Expected nonce to be 0 but got 19. Note that transactions can't be queued when automining. -> Maybe you restarted your Blockchain? In this case, your Blockchain expect that the nonce is 0 -> go to metamask settings and change manual the nonce

  2. Calling an Account which is not a contract -> Could be false contract address in component -> redeploy the contract -> npx hardhat run scripts/deploy.js --network localhost -> double check the contract address

hellohardhatreact's People

Contributors

malu-schy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.