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 14fa0a3 commit 19eafb9
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 @@ -63,6 +63,7 @@ contract CryptoHerosToken is ERC721Token, Ownable {
string _image = images[rand(0, images.length)];
string _background = backgrounds[rand(0, backgrounds.length)];
string _description = descriptions[num];
heros.push(Hero({number: _number, image: _image, background: _background, description: _description}));
tokenProperty[_tokenId] = Hero({number: _number, image: _image, background: _background, description: _description});
super._mint(msg.sender, _tokenId);
}
Expand Down

0 comments on commit 19eafb9

Please sign in to comment.