Skip to content

Patrick Collin's Freecodecamp course on Solidity. Lesson 7

Notifications You must be signed in to change notification settings

micha1805/smartcontractLottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smartcontract Lottery

  1. User can enter lottery with ETH based on USD fee (let say the entry fee is $50, this will be payed in ETH base on its current price)
  2. An admin will choose when the lottery is over
  3. The lottery will select a random winner

.env file content

You need to add a .envfile with the following content (modified with your personal datas). ETHERSCAN_TOKEN is your api key from Etherscan to verify your contracts.

export PRIVATE_KEY=0x123412341234
export WEB3_INFURA_PROJECT_ID=123412341234
export ETHERSCAN_TOKEN=123412341234

About

Patrick Collin's Freecodecamp course on Solidity. Lesson 7

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published