Skip to content

Commit

Permalink
Merge pull request #775 from BerzanXYZ/main
Browse files Browse the repository at this point in the history
fix: mistaken parameter & event names
  • Loading branch information
barriebyron authored Dec 6, 2023
2 parents 2b34d37 + e4647eb commit a8fadf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/zkapps/tutorials/07-oracle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ The `verify()` method is defined like any other TypeScript method, except that i
Pass in these arguments:
- `userId`: The id of the user whose credit score is requested is required to prevent bad actors from querying somebody else's data and claiming it as their own.
- `id`: The id of the user whose credit score is requested is required to prevent bad actors from querying somebody else's data and claiming it as their own.
- `creditScore`: The credit score of the user that is a number between 350 and 800 (this tutorial uses mock credit scores).
- `signature`: A cryptographic signature of `userId` and `creditScore`. This is what the smart contract uses to verify that the data was provided by the expected source.
- `signature`: A cryptographic signature of `id` and `creditScore`. This is what the smart contract uses to verify that the data was provided by the expected source.
The `verify()` method does not return any values or change any contract state. It only emits an `id` event with the user's id if their credit score is above 700.
The `verify()` method does not return any values or change any contract state. It only emits a `verified` event with the user's id if their credit score is above 700.
### Fetch the oracle's public key
Expand Down

1 comment on commit a8fadf3

@vercel
Copy link

@vercel vercel bot commented on a8fadf3 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

07-oracles – ./examples/zkapps/07-oracles/oracle

07-oracles.vercel.app
07-oracles-minadocs.vercel.app
07-oracles-git-main-minadocs.vercel.app

Please sign in to comment.