Skip to content

Commit

Permalink
Update instruction to fire RemoveOracleEvent instead of AddOracleEvent (
Browse files Browse the repository at this point in the history
CryptozombiesHQ#475)

* Update instruction to fire RemoveOracleEvent instead of AddOracleEvent

* Fix type for 'finished'
  • Loading branch information
damienteo authored Mar 9, 2021
1 parent cab7ff4 commit 10c98e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion en/16/05.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ We've gone ahead and created a function named `removeOracle`, and filled in the
3. Inside the `removeOracle` function, add the `require` statement that checks that `numOracles > 1`. Set the message to `"Do not remove the last oracle!"`
4. Call the `oracle.remove` function, passing it `_oracle` as an argument.
5. Use `--` to decrement `numOracles`.
6. Lastly, let's fire `AddOracleEvent`. It takes one argument- `_oracle`.
6. Lastly, let's fire `RemoveOracleEvent`. It takes one argument- `_oracle`.

This was a lot. And still, there's one thing left. The `addOracle` function should increment the `numOracles` variable. Don't worry about this though, we've gone ahead and added that line of code🤓.
2 changes: 1 addition & 1 deletion en/16/lessoncomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ material:
lessonComplete: 1
---

Congratulations! You've just finsihed implementing your decentralized oracle!
Congratulations! You've just finished implementing your decentralized oracle!

The lessons in this series were aimed at getting you familiarized with the concepts and the challenges behind writing an oracle. Even if this was just a demo implementation, and we've made a few decisions that simplified things a bit, we trust you have the skills to make a production-ready oracle!💪🏻

Expand Down

0 comments on commit 10c98e9

Please sign in to comment.