Skip to content

Instantly share code, notes, and snippets.

@merlox
Created October 26, 2018 15:10
Show Gist options
  • Save merlox/7fc41b9b47b33eac142369c656d52747 to your computer and use it in GitHub Desktop.
Save merlox/7fc41b9b47b33eac142369c656d52747 to your computer and use it in GitHub Desktop.
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