Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 735 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 735 Bytes

Pandora

A simple dApp with Smart Contract.

Author: Snow.li

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

HardHat Environment

Compiling your Smart Contract

This will generate artifacts abi needed for your web app

npx hardhat compile

Deploying to your Local Hardhat Blockchain

  1. Start a Hardhat Node

    npx hardhat node --fork https://evm-cronos.crypto.org
    
  2. Open a new terminal execute the following script

    2.1 deploy smart contract:
        npx hardhat run --network localhost scripts/deploy.js
    2.2 Test address recharge
        npx hardhat run --network localhost test/mock/transfer2.js