Skip to content

Commit 5be91fa

Browse files
committed
chore: merge fixes, remove logs
1 parent 208fcb4 commit 5be91fa

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

barretenberg/cpp/src/barretenberg/vm2/simulation/gadgets/tx_execution.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ class TxExecution final {
5151

5252
const TxContext& get_tx_context() const { return tx_context; }
5353

54-
const TxContext& get_tx_context() const { return tx_context; }
55-
5654
private:
5755
ExecutionInterface& call_execution;
5856
ContextProviderInterface& context_provider;

barretenberg/cpp/src/barretenberg/vm2/simulation/gadgets/update_check.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ using UnconstrainedPoseidon2 = crypto::Poseidon2<crypto::Poseidon2Bn254ScalarFie
1414
FF unconstrained_read(const LowLevelMerkleDBInterface& merkle_db, const FF& leaf_slot)
1515
{
1616
auto [present, index] = merkle_db.get_low_indexed_leaf(world_state::MerkleTreeId::PUBLIC_DATA_TREE, leaf_slot);
17-
info("performing unconstrained read for slot: ", leaf_slot, ", w res index: ", index);
1817
auto preimage = merkle_db.get_leaf_preimage_public_data_tree(index);
19-
info("performing get leaf preimage for index: ", index, ", got value: ", preimage.leaf.value);
2018
return present ? preimage.leaf.value : 0;
2119
}
2220

@@ -25,7 +23,6 @@ FF unconstrained_read(const LowLevelMerkleDBInterface& merkle_db, const FF& leaf
2523
void UpdateCheck::check_current_class_id(const AztecAddress& address, const ContractInstance& instance)
2624
{
2725
// Compute the public data tree slots
28-
info("should arrive here after instance");
2926
FF delayed_public_mutable_slot = poseidon2.hash({ UPDATED_CLASS_IDS_SLOT, address });
3027
FF delayed_public_mutable_hash_slot = delayed_public_mutable_slot + UPDATES_DELAYED_PUBLIC_MUTABLE_VALUES_LEN;
3128
// Read the hash from the tree. We do a trick with delayed public mutables (updates are delayed public mutables)
@@ -41,13 +38,6 @@ void UpdateCheck::check_current_class_id(const AztecAddress& address, const Cont
4138
uint64_t current_timestamp = globals.timestamp;
4239

4340
if (hash == 0) {
44-
info("hash 0, not performing unconstrained reads, would be for slots:");
45-
info(unconstrained_compute_leaf_slot(CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS, delayed_public_mutable_slot));
46-
info(unconstrained_compute_leaf_slot(CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS,
47-
delayed_public_mutable_slot + 1));
48-
info(unconstrained_compute_leaf_slot(CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS,
49-
delayed_public_mutable_slot + 2));
50-
5141
// If the delayed public mutable has never been written, then the contract was never updated. We short circuit
5242
// early.
5343
if (instance.original_class_id != instance.current_class_id) {
@@ -62,7 +52,6 @@ void UpdateCheck::check_current_class_id(const AztecAddress& address, const Cont
6252
for (size_t i = 0; i < update_preimage.size(); ++i) {
6353
FF leaf_slot = unconstrained_compute_leaf_slot(CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS,
6454
delayed_public_mutable_slot + i);
65-
info("performing unconstrained reads i = ", i);
6655
update_preimage[i] = unconstrained_read(unconstrained_merkle_db, leaf_slot);
6756
}
6857

barretenberg/cpp/src/barretenberg/vm2/simulation/lib/hinting_dbs.test.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,6 @@ class HintingDBsTest : public ::testing::Test {
193193
// }
194194
// }
195195
}
196-
197-
static std::vector<PublicDataWrite> get_public_data_writes(const PublicInputs& inputs)
198-
{
199-
assert(inputs.accumulatedDataArrayLengths.publicDataWrites <= inputs.accumulatedData.publicDataWrites.size());
200-
const auto* public_data_writes_start = inputs.accumulatedData.publicDataWrites.begin();
201-
return std::vector<PublicDataWrite>(
202-
public_data_writes_start, public_data_writes_start + inputs.accumulatedDataArrayLengths.publicDataWrites);
203-
}
204196
};
205197

206198
TEST_F(HintingDBsTest, Basic)
@@ -215,7 +207,7 @@ TEST_F(HintingDBsTest, Basic)
215207
compare_all_hints(input_hints, collected_hints);
216208

217209
// Check witgen simulation works with collected hints:
218-
simulation_helper.simulate_for_witgen(collected_hints, get_public_data_writes(inputs.publicInputs));
210+
simulation_helper.simulate_for_witgen(collected_hints);
219211
}
220212

221213
} // namespace

0 commit comments

Comments
 (0)