-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): fix tutorial in dapp development (#2421)
tutorial on dapp dev doesn't work. Now it does (hopefully)
- Loading branch information
1 parent
e4b559e
commit 027530f
Showing
7 changed files
with
53 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
yarn-project/noir-contracts/src/contracts/token_contract/src/util.nr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
// docs:start:token_util_all | ||
use dep::std::hash::{pedersen_with_separator}; | ||
use dep::aztec::constants_gen::GENERATOR_INDEX__SIGNATURE_PAYLOAD; | ||
|
||
fn compute_message_hash<N>(args: [Field; N]) -> Field { | ||
// @todo @lherskind We should probably use a separate generator for this, | ||
// to avoid any potential collisions with payloads. | ||
pedersen_with_separator(args, GENERATOR_INDEX__SIGNATURE_PAYLOAD)[0] | ||
} | ||
} | ||
// docs:end:token_util_all |