Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 767 Bytes

README.md

File metadata and controls

44 lines (34 loc) · 767 Bytes

ETH Even Odd

Development

Setup

Make sure these tools are installed with the correct version

  • solc 0.8.0

Build and Test

Install dependencies

cmd$> npm install

Run local network

cmd$> npx hardhat node

Compile contracts

cmd$> npx hardhat compile

Deploy contracts (default is local network hardhat)

cmd$> npx hardhat run scripts/deploy.js --network <your-network>

Run all javascript tests

cmd$> npx hardhat test

Run specified javascript test or specified network (default is local network hardhat)

cmd$> npx hardhat test <test-file-path> --network <your-network>

Run solhint

cmd$> npx solhint --formatter table 'contracts/**/*.sol'