Skip to content

Badal-Sharma-09/Lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Lottery Smart Contract

This Contract is for Creating a Sample Raffle. Every User Buy a raffle and get a random number and winner is announced at the end of Lottery.

Getting Started

Requirements

git You'll know you did it right if you can run git --version and you see a response like git version x.x.x

foundry You'll know you did it right if you can run forge --version and you see a response like forge 0.2.0

Quickstart

$ git clone https://github.com/HackerBadal/Lottery
$ cd Lottery
$ forge build

Usage

Deploy

$ forge script script/DeployRaffle.s.sol  --rpc-url $SEPOLIA_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY

Running Tests

To run tests, run the following command

  $ forge test

🚀 About Me

👾👾I'm a web3 auditor

🔗 Thank you!

twitter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published