Skip to content

Commit

Permalink
Updating lesson 2
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulianaBYUI authored Feb 6, 2019
1 parent 3e3c566 commit 7d3e563
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions es/2/7-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ material:
language: sol
startingCode:
"zombiefeeding.sol": |
pragma solidity ^0.4.19;
pragma solidity ^0.4.25;
import "./zombiefactory.sol";
Expand All @@ -16,7 +16,7 @@ material:
}
"zombiefactory.sol": |
pragma solidity ^0.4.19;
pragma solidity ^0.4.25;
contract ZombieFactory {
Expand All @@ -39,11 +39,11 @@ material:
uint id = zombies.push(Zombie(_name, _dna)) - 1;
zombieToOwner[id] = msg.sender;
ownerZombieCount[msg.sender]++;
NewZombie(id, _name, _dna);
emit NewZombie(id, _name, _dna);
}
function _generateRandomDna(string _str) private view returns (uint) {
uint rand = uint(keccak256(_str));
uint rand = uint(keccak256(abi.encodePacked(_str)));
return rand % dnaModulus;
}
Expand All @@ -55,7 +55,7 @@ material:
}
answer: >
pragma solidity ^0.4.19;
pragma solidity ^0.4.25;
import "./zombiefactory.sol";
Expand Down

0 comments on commit 7d3e563

Please sign in to comment.