Skip to content

Commit

Permalink
Fix misspellings of OpenZeppelin (CryptozombiesHQ#709)
Browse files Browse the repository at this point in the history
There were two instances where OpenZeppelin was misspelled, so I corrected them.
  • Loading branch information
detinsley1s authored Dec 21, 2022
1 parent d813024 commit 96bbf08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/14/04.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Here's the solution: you must use something called a `modifier`. A modifier is a

So, fixing this security hole requires you to follow the following steps:

* Import the content of the OpenZepellin's `Ownable` smart contract. We've covered OpenZepellin in our previous lessons, just go back and refresh your memory if need be.
* Import the content of the OpenZeppelin's `Ownable` smart contract. We've covered OpenZeppelin in our previous lessons, just go back and refresh your memory if need be.
* Make the contract inherit from `Ownable`.
* Change the definition of the `setOracleInstanceAddress` function so that it uses the `onlyOwner` modifier.

Expand Down Expand Up @@ -86,4 +86,4 @@ Pretty easy! Now it's your turn to put it in practice😉.

3. Attach the `onlyOwner` modifier's name at the end of the `setOracleInstanceAddress` function definition.

4. While you're here, you would want to fire an event so that the front-end gets notified every time the oracle address is changed. We went ahead and declared an event named `newOracleAddressEvent`. The last line of the `setOracleInstanceAddress` function should emit `newOracleAddressEvent`. Pass it `oracleAddress` as an argument.
4. While you're here, you would want to fire an event so that the front-end gets notified every time the oracle address is changed. We went ahead and declared an event named `newOracleAddressEvent`. The last line of the `setOracleInstanceAddress` function should emit `newOracleAddressEvent`. Pass it `oracleAddress` as an argument.

0 comments on commit 96bbf08

Please sign in to comment.