Skip to content

Commit

Permalink
Update noir-projects/aztec-nr/aztec/src/initializer.nr
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Gherghisan <alexghr@users.noreply.github.com>
  • Loading branch information
spalladino and alexghr committed Mar 13, 2024
1 parent 235d22d commit ecfead7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noir-projects/aztec-nr/aztec/src/initializer.nr
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ pub fn assert_initialization_args_match_address_preimage<TContext>(context: TCon
assert(instance.initialization_hash == expected_init, "Initialization hash does not match");
}

pub fn compute_initialization_hash(init_selector: FunctionSelector, init_args: Field) -> Field {
pedersen_hash([init_selector.to_field(), init_args], GENERATOR_INDEX__CONSTRUCTOR)
pub fn compute_initialization_hash(init_selector: FunctionSelector, init_args_hash: Field) -> Field {
pedersen_hash([init_selector.to_field(), init_args_hash], GENERATOR_INDEX__CONSTRUCTOR)
}

0 comments on commit ecfead7

Please sign in to comment.