Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contract ZombieFactory {
- uint dnaDigits = 16;
- uint dnaModulus = 10 ** dnaDigits;
- struct Zombie {
- string name;
- uint dna;
- }
- Zombie[] public zombies;
- function _createZombie(string _name, uint _dna) private{
- zombies.push(Zombie(_name, _dna));
- }
- }
Add Comment
Please, Sign In to add comment