Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sg-milad/lottery-contract-hardhat

simple lottery contract with solidity and hardhat
https://github.com/sg-milad/lottery-contract-hardhat

chai hardhat solidity typescrypt viem

Last synced: 3 months ago
JSON representation

simple lottery contract with solidity and hardhat

Awesome Lists containing this project

README

        

# This is a simple lottery contract with solidity. don't use this on production because it has a Vulnerability

## Sample Hardhat Project

Try running some of the following tasks:

```shell
npx hardhat compile
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run --network localhost scripts/deploy.ts
```

## to do

- get a random number from [chainlink](https://chain.link/)
- add more test

### done

- refactor test ✔️
- add another contract to start and end the lottery ✔️