Skip to content

Commit

Permalink
Update CryptoHerosGame
Browse files Browse the repository at this point in the history
  • Loading branch information
PhyrexTsai committed Jul 23, 2018
1 parent 4276f42 commit e3172eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions contracts/CryptoHerosGame.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ contract CryptoHerosGame is Ownable {
Game[] public games;
SingleGame[] public singleGames;

function CryptoHerosGame(CryptoHerosToken _cryptoHerosToken) public {
cryptoHerosToken = _cryptoHerosToken;
}

constructor(CryptoHerosToken _cryptoHerosToken) public {
cryptoHerosToken = _cryptoHerosToken;
}

function createSingleGame(uint _tokenId) payable public returns (uint256) {
require(msg.value >= minPrice);
Expand Down
2 changes: 1 addition & 1 deletion migrations/2_deploy_contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const writeFile = util.promisify(fs.writeFile);

module.exports = async function(deployer) {
const cryptoHerosToken = await deployer.deploy(CryptoHerosToken, "CryptoHerosToken", "HERO");
const cryptoHerosGame = await deployer.deploy(CryptoHerosGame, cryptoHerosToken.address);
const cryptoHerosGame = await deployer.deploy(CryptoHerosGame, CryptoHerosToken.address);

// const addresses = {
// tokenAddress: CryptoHerosToken.address
Expand Down

0 comments on commit e3172eb

Please sign in to comment.