Skip to content

Commit

Permalink
Update CryptoHerosGame
Browse files Browse the repository at this point in the history
  • Loading branch information
PhyrexTsai committed Jul 24, 2018
1 parent 3231f96 commit b9f8333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/CryptoHerosGame.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ contract CryptoHerosGame is Ownable {
cryptoHerosToken = _cryptoHerosToken;
}

function () payable {
function () payable public {

}

function createSingleGame(uint _tokenId) payable public returns (uint256) {
require(msg.value >= minPrice);
require(this.balance >= minHerosToken);
require(address(this).balance >= minHerosToken);
require(cryptoHerosToken.ownerOf(_tokenId) == msg.sender);

uint userTokenNumber;
Expand Down Expand Up @@ -89,7 +89,7 @@ contract CryptoHerosGame is Ownable {
}

function withdraw(uint amount) public payable onlyOwner returns(bool) {
require(amount <= this.balance);
require(amount <= address(this).balance);
owner.transfer(amount);
return true;
}
Expand Down

0 comments on commit b9f8333

Please sign in to comment.