Skip to content

Lottery system on Ethereum Blockchain using Solidity and Smart Contract

Notifications You must be signed in to change notification settings

LeoGrambert/SOLIDITY-lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lottery system on Ethereum Testnet Goerli Blockchain using Solidity and Smart Contract

Installation

cd Lottery
npm install
cd Front
npm install

Deploy Smart Contract

1/ Create .env in Lottery folder and put your TEST account. Don't use your real account.

PRIVATE_KEY=**** **** **** **** **** **** **** **** **** **** **** ****
INFURA_URL=******

2/ Call deploy script in order to deploy the smart contract on Goerli Testnet

cd Lottery
npm run deploy

3/ Copy the interface and your account address from terminal

Set up the front application

Put copied information and pasted it in /src/utils/lottery.js

npm start

Go to localhost:3000

Tests Smart Contract

With Mocha

cd Lottery
npm run test

App Result