Coder Social home page Coder Social logo

xactant / flipit2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 1.03 MB

A dApp game based on JQuery, and Web3. The Solidity Contract that performs the actual function of the game access an Oracle and uses events to communicate with the UI.

JavaScript 16.84% HTML 14.32% CSS 2.26% Solidity 66.58%

flipit2's People

Contributors

xactant avatar

Watchers

 avatar

Forkers

web3dopamine

flipit2's Issues

Events not filtered per player

Filter set in index.html

Replicate:

  1. Open fliptit app in two different browsers (i.e. Firefox and Chrome).
  2. Log into Metamask but select separate accounts for each browser.
  3. In each browser hit F-12 to open the console.
  4. In one browser toss the coin.
  5. Observe consoles, notice the events are displayed in both even though different user accounts are used.

Desired Outcome:
Player should only receive their own events.

UI does not Enforce Maximum Wager

If a wager is made that is greater than 0.5 available ETH (defined in game contract) the Toss call is rejected as expected. However player see an generic failure.

To Duplicate:

  1. In flipit app, log into Metamask with any player account
  2. Enter a high wager (e.g. 10 ETH) that is less than amount in wallet account.
  3. Toss coin - observe that transactions fails but no reason is given.

Expected Behavior:
If player enters a wager higher than current max, UI should warn player and not allow toss.

UI - Claim Button not Disabled During Transaction

When the Claim view is displayed and the player clicks the Claim button, The Claim button is not disabled after the claim is executed. This allows user to re-submit claim request which will fail and then displayed transactions failures, confusing player.

To Duplicate:

  1. In FlipIt app toss coind until tos won and claim view is displayed.
  2. Click on Claim button and authorize transaction.
  3. Observe that Claim button is not disabled. Click on claim button again, observe that another transaction is started.

Expected Behavior
Claim button is disabled when transaction is authorized.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.