View Code? Open in Web Editor
NEW
This is a fullstack Dapp called Lottery
HTML 13.77%
CSS 7.44%
JavaScript 71.57%
Solidity 7.22%
dapp_lottery's Introduction
Note: Rinkby testnet is not working currently. So you need to change the testnet Rinkby to Gorli
- Must have to create Metamask wallet
- Also need to create infura account
- Then go for deploy.js file (you will find it in the lottery-updated folder) then change/place the Metamask secret 12 word and the infura rinkeby API
- Open the cmd with lottery-updated folder then run the following command:
cd lottery-updated
npm init
npm install solc@0.8.9 web3 mocha ganache-cli @truffle/hdwallet-provider
- After that open another cmd with the lottery_react folder then simply run the following command:
npm init
npm install
npm start
Extra: TO see the ABI and deployed contract