Created
April 20, 2019 05:07
-
-
Save panda850819/8b7b7a9e3d1bc8e86e79599fc3cda763 to your computer and use it in GitHub Desktop.
Markdium-CryptoZombie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.25; | |
contract ZombieFactory { | |
uint dnaDigits = 16; | |
uint dnaModulus = 10 ** dnaDigits; | |
struct Zombie { | |
string name; | |
uint dna; | |
} | |
Zombie[] public zombies; | |
function createZombie (string _name, uint _dna) { | |
zombies.push(Zombie(_name, _dna)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment