Skip to content

Commit

Permalink
Merge pull request CryptozombiesHQ#429 from rattrap/patch-1
Browse files Browse the repository at this point in the history
Fixed constructor name
  • Loading branch information
hankxdev authored Dec 11, 2019
2 parents 209dab9 + e3891c4 commit b2ea939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/3/02-ownable.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ contract Ownable {

A few new things here we haven't seen before:

- Constructors: `function Ownable()` is a **_constructor_**, which is an optional special function that has the same name as the contract. It will get executed only one time, when the contract is first created.
- Constructors: `constructor()` is a **_constructor_**, which is an optional special function. It will get executed only one time, when the contract is first created.
- Function Modifiers: `modifier onlyOwner()`. Modifiers are kind of half-functions that are used to modify other functions, usually to check some requirements prior to execution. In this case, `onlyOwner` can be used to limit access so **only** the **owner** of the contract can run this function. We'll talk more about function modifiers in the next chapter, and what that weird `_;` does.
- `indexed` keyword: don't worry about this one, we don't need it yet.

Expand Down

0 comments on commit b2ea939

Please sign in to comment.