Skip to content

An betting game written as an Ethereum Smart Contract

Notifications You must be signed in to change notification settings

Mathyn/betting-smart-contract

Repository files navigation

Betting system using an Ethereum Smart Contract

!!!disclaimer!!! do not use this in production! This is my first attempt at writing a Smart Contract...

Before running this project

Make sure you have Node and Truffle installed. Next in the root of the project do:

npm install

Running this project

Start the Truffle develop console:

truffle develop

Next run the migrations to deploy the Bet contract

migrate

Finally run the test script

exec ./scripts/Bet/run.js

The test script will simulate three voters competing agains each other.

Testing

To run the unit tests do:

truffle test ./test/Bet.js

About

An betting game written as an Ethereum Smart Contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published