Skip to content

Commit

Permalink
Fix more tree index type in test util
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Apr 27, 2023
1 parent 4bad0f9 commit 3b93091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circuits/cpp/src/aztec3/circuits/rollup/test_utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ BaseRollupInputs base_rollup_inputs_from_kernels(std::array<KernelData, 2> kerne
auto state_read = kernel_data[i].public_inputs.end.state_reads[j];
if (state_read.is_empty())
continue;
auto leaf_index = size_t(uint256_t(state_read.leaf_index));
auto leaf_index = uint256_t(state_read.leaf_index);
baseRollupInputs.new_state_reads_sibling_paths[i * STATE_READS_LENGTH + j] =
MembershipWitness<NT, PUBLIC_DATA_TREE_HEIGHT>{
.leaf_index = state_read.leaf_index,
Expand All @@ -184,7 +184,7 @@ BaseRollupInputs base_rollup_inputs_from_kernels(std::array<KernelData, 2> kerne
auto state_write = kernel_data[i].public_inputs.end.state_transitions[j];
if (state_write.is_empty())
continue;
auto leaf_index = size_t(uint256_t(state_write.leaf_index));
auto leaf_index = uint256_t(state_write.leaf_index);
public_data_tree.update_element(leaf_index, state_write.new_value);
baseRollupInputs.new_state_transitions_sibling_paths[i * STATE_TRANSITIONS_LENGTH + j] =
MembershipWitness<NT, PUBLIC_DATA_TREE_HEIGHT>{
Expand Down

0 comments on commit 3b93091

Please sign in to comment.