Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

[High Roller] Add getPlayerRolls function to HighRollerApp #2341

Merged
merged 4 commits into from
Sep 6, 2019

Conversation

Alonski
Copy link
Member

@Alonski Alonski commented Sep 5, 2019

Description

This splits the highRoller function into two functions for the client. Currently, the client calls the highRoller function which returns the total of two dice rolls.
Then it splits that up for the UI to show.

This is incorrect. For example a die roll of 1 and 6 will be shown in the UI as 3 and 4.

The code on the client:
https://github.com/counterfactual/dapps-bots/blob/master/packages/dapp-high-roller/src/components/app-root/app-root.tsx#L212

Related issues

Relates to: counterfactual/dapps-bots#22

  • Deploy preview is functional

This splits the highRoller function into two functions for the client
@Alonski Alonski added 📦 Contracts code related to packages/contracts 📦 DappHighRoller code related to packages/dapp-high-roller labels Sep 5, 2019
@Alonski Alonski requested a review from snario as a code owner September 5, 2019 22:57
@Alonski Alonski merged commit 70430cc into master Sep 6, 2019
@Alonski Alonski deleted the alon/high-roller-accurate-rolls branch September 6, 2019 00:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📦 Contracts code related to packages/contracts 📦 DappHighRoller code related to packages/dapp-high-roller
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants