Skip to content

Commit

Permalink
Fix typo in Lesson 16 Chapter 6 (CryptozombiesHQ#499)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Popescu <[email protected]>
  • Loading branch information
maAPPsDEV and andreipope authored Jul 6, 2021
1 parent 60ade3e commit 74ecd00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/16/06.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ To accomplish this, you're going to use a `mapping` that'll associate each reque

## Put It to the Test

We've gone ahead and removed the `onlyOwner` modifier from the `setLatestEthPrice` function definition, and added a `require` statement that makes sure `oracles.has` `(msg.sender)` (once again, please excuse the grammar!). We've also added the line of code that defines the `requestIdToResponse` mapping. Make sure you browse through the code before moving on.
We've gone ahead and removed the `onlyOwner` modifier from the `setLatestEthPrice` function definition, and added a `require` statement that makes sure `oracles.has(msg.sender)` (once again, please excuse the grammar!). We've also added the line of code that defines the `requestIdToResponse` mapping. Make sure you browse through the code before moving on.

1. Let's start by defining a `struct` named `Response` with the following properties inside of it: `oracleAddress` (an `address`), `callerAddress` (an `address`), and `ethPrice` (a `uint256`).
2. Now let's move to the `setLatestEthPrice`. Declare a `Response` variable called `resp`. It should be stored in `memory`.
Expand Down

0 comments on commit 74ecd00

Please sign in to comment.