Skip to content

Commit

Permalink
Update CryptoHerosToken
Browse files Browse the repository at this point in the history
  • Loading branch information
PhyrexTsai committed Jul 24, 2018
1 parent 12ca83a commit 99f3622
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/CryptoHerosToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ contract CryptoHerosToken is ERC721Token, Ownable {
function mint() public payable {
require(heros.length > 0);
require(msg.value >= minPrice);
require(owner.send(msg.value));
uint256 _tokenId = totalSupply();
tokenOwner[_tokenId] = msg.sender;
super._mint(msg.sender, _tokenId);
Expand Down

0 comments on commit 99f3622

Please sign in to comment.