Skip to content

Commit

Permalink
1073 - jeanmon review's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmon committed Jul 18, 2023
1 parent 351972e commit 3b3eccb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circuits/cpp/src/aztec3/circuits/kernel/private/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ void common_update_end_values(DummyBuilder& builder,
// We silo the read requests (domain separation per contract address)
{
for (size_t i = 0; i < read_requests.size(); ++i) {
const auto read_request = read_requests[i];
const auto witness = read_request_membership_witnesses[i];
const auto& read_request = read_requests[i];
const auto& witness = read_request_membership_witnesses[i];
if (witness.is_transient) { // only forward transient to public inputs
const auto siloed_read_request =
read_request == 0 ? 0 : silo_commitment<NT>(storage_contract_address, read_request);
Expand Down
1 change: 1 addition & 0 deletions circuits/cpp/src/aztec3/utils/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ template <typename T, size_t SIZE> void array_rearrange(std::array<T, SIZE>& arr
} else {
if (!arr[i].is_empty()) {
arr[target_pos] = arr[i];
target_pos++;
}
}
}
Expand Down

0 comments on commit 3b3eccb

Please sign in to comment.