Created
October 26, 2018 15:10
-
-
Save merlox/7fc41b9b47b33eac142369c656d52747 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.4.25; | |
contract Dice { | |
address public player1; | |
address public player2; | |
uint256 public player1Escrow; | |
uint256 public player2Escrow; | |
constructor () public payable { | |
require(msg.value > 0); | |
player1 = msg.sender; | |
player1Escrow = msg.value; | |
} | |
function setupPlayer2() public payable { | |
require(msg.value > 0); | |
player2 = msg.sender; | |
player2Escrow = msg.value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment