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

Fix players variable reliance of TicTacToe app code #1635

Merged
merged 1 commit into from
Jun 5, 2019
Merged

Conversation

snario
Copy link
Contributor

@snario snario commented Jun 5, 2019

TicTacToe client logic depended on the players variable in the AppState of the TicTacToe. However, we could not rely on this anymore since the Interpreter PR (#1263) removed this variable from the contract. Now that it is gone, we rely on the beneficiaries field of the AppInstance that @IIIIllllIIIIllllIIIIllllIIIIllllIIIIll added. This field is temporary (since it is hard coded to a specific interpreter but happens to be getting written to in the Install Protocol (see [1]).

Also, separately, the interpreterParams for the TwoPartyEthAsLump.sol interpreter were being incorrectly set, this fixes that.

[1]

/* beneficiaries */ [initiatingFbAddress, respondingFbAddress],

@snario snario requested a review from ldct June 5, 2019 19:00
@snario snario changed the title Fix players variable reliance of HighRoller Fix players variable reliance of TicTacToe app code Jun 5, 2019
@cf19drofxots cf19drofxots merged commit b1f16bb into master Jun 5, 2019
@cf19drofxots cf19drofxots deleted the liam/fixHR branch June 5, 2019 19:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants