Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
phDooY committed Mar 9, 2018
2 parents 14fc0bc + dd676f3 commit 42e6fab
Show file tree
Hide file tree
Showing 141 changed files with 22,150 additions and 203 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ public/
build/
.tmp
.idea/
/.vs/
2 changes: 1 addition & 1 deletion en/3/02-ownable.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ To handle cases like this, one common practice that has emerged is to make contr

## OpenZeppelin's `Ownable` contract

Below is the `Ownable` contract taken from the **_OpenZeppelin_** Solidity library. OpenZeppelin is a library of secure and community-vetted smart contracts that you can use in your own DApps. After this lesson, while you anxiously await the release of Lesson 4, we highly recommend you check out their site to further your learning!
Below is the `Ownable` contract taken from the **_OpenZeppelin_** Solidity library. OpenZeppelin is a library of secure and community-vetted smart contracts that you can use in your own DApps. After this lesson, we highly recommend you check out their site to further your learning!

Give the contract below a read-through. You're going to see a few things we haven't learned yet, but don't worry, we'll talk about them afterward.

Expand Down
2 changes: 1 addition & 1 deletion en/3/08-functionmodifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ mapping (uint => uint) public age;
// Modifier that requires this user to be older than a certain age:
modifier olderThan(uint _age, uint _userId) {
require (age[_userId] >= _age);
require(age[_userId] >= _age);
_;
}
Expand Down
4 changes: 4 additions & 0 deletions en/4/battle-02.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ material:
language: sol
startingCode:
"zombieattack.sol": |
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down Expand Up @@ -203,6 +205,8 @@ material:
}
answer: >
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down
4 changes: 4 additions & 0 deletions en/4/battle-03.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ material:
language: sol
startingCode:
"zombieattack.sol": |
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down Expand Up @@ -211,6 +213,8 @@ material:
}
answer: >
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down
2 changes: 2 additions & 0 deletions en/4/battle-04.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ material:
}
}
"zombieattack.sol": |
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down
7 changes: 7 additions & 0 deletions en/4/battle-05.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ material:
}
"zombieattack.sol": |
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down Expand Up @@ -238,6 +240,11 @@ material:
function setLevelUpFee(uint _fee) external onlyOwner {
levelUpFee = _fee;
}
function levelUp(uint _zombieId) external payable {
require(msg.value == levelUpFee);
zombies[_zombieId].level++;
}
function changeName(uint _zombieId, string _newName) external aboveLevel(2, _zombieId) ownerOf(_zombieId) {
zombies[_zombieId].name = _newName;
Expand Down
4 changes: 4 additions & 0 deletions en/4/battle-06.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ material:
language: sol
startingCode:
"zombieattack.sol": |
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down Expand Up @@ -216,6 +218,8 @@ material:
}
answer: >
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down
2 changes: 2 additions & 0 deletions en/4/battle-07.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ material:
}
"zombieattack.sol": |
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down
4 changes: 4 additions & 0 deletions en/4/battle-08.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ material:
language: sol
startingCode:
"zombieattack.sol": |
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down Expand Up @@ -220,6 +222,8 @@ material:
}
answer: >
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down
4 changes: 4 additions & 0 deletions en/4/battle-09.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ material:
language: sol
startingCode:
"zombieattack.sol": |
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down Expand Up @@ -225,6 +227,8 @@ material:
}
answer: >
pragma solidity ^0.4.19;
import "./zombiehelper.sol";
contract ZombieBattle is ZombieHelper {
Expand Down
13 changes: 13 additions & 0 deletions en/5/00-overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: ERC721 & Crypto-Collectibles
header: "Lesson 5: ERC721 & Crypto-Collectibles"
roadmap: roadmap5.jpg
---

Whew! Things are starting to heat up in here...

In this lesson, we're going to get a bit more advanced.

We're going to talk about **tokens**, the **ERC721** standard, and **crypto-collectible assets**.

In other words, we're going to **make it so you can trade your zombies with your friends.**
Loading

0 comments on commit 42e6fab

Please sign in to comment.