/bet-eth-smartcontract

A simple contracts which select one of the team win and distributes prize in eth

Primary LanguageJavaScript

Simple Bet Contract with frontend

A simple contracts which select one of the team win and distributes prize in eth

Setup

  • Install Truffle
    npm install truffle -g

  • Install node_modules
    npm i

Truffle Compile

  • Replace private key and infura url in truffle-config.js/truffle.js
    truffle compile

Deploy

  • Truffle migrate
    truffle migrate --network goerli

Start Frontend

  • Start npm project
    npm start