From d9d542389241fc30e8c41b996fc4e5db75d5d88f Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Mon, 6 Jan 2025 10:50:24 -0300 Subject: [PATCH 1/2] chore: Hide note_hashes log Hides the log message 'Context.note_hashes, after pushing new note hash' in the oracle. Note we cannot just remove it due to #10558. --- yarn-project/simulator/src/client/client_execution_context.ts | 4 ---- yarn-project/simulator/src/client/view_data_oracle.ts | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn-project/simulator/src/client/client_execution_context.ts b/yarn-project/simulator/src/client/client_execution_context.ts index 12e8c814a2a..dc8f2faa4a4 100644 --- a/yarn-project/simulator/src/client/client_execution_context.ts +++ b/yarn-project/simulator/src/client/client_execution_context.ts @@ -544,10 +544,6 @@ export class ClientExecutionContext extends ViewDataOracle { ); } - public override debugLog(message: string, fields: Fr[]) { - this.log.verbose(`${applyStringFormatting(message, fields)}`, { module: `${this.log.module}:debug_log` }); - } - public getDebugFunctionName() { return this.db.getDebugFunctionName(this.contractAddress, this.callContext.functionSelector); } diff --git a/yarn-project/simulator/src/client/view_data_oracle.ts b/yarn-project/simulator/src/client/view_data_oracle.ts index d80b2d91182..8f561371b4d 100644 --- a/yarn-project/simulator/src/client/view_data_oracle.ts +++ b/yarn-project/simulator/src/client/view_data_oracle.ts @@ -290,6 +290,10 @@ export class ViewDataOracle extends TypedOracle { } public override debugLog(message: string, fields: Fr[]): void { + // TODO(#10558) Remove this check once the debug log is fixed + if (message.startsWith('Context.note_hashes, after pushing new note hash:')) { + return; + } this.log.verbose(`${applyStringFormatting(message, fields)}`, { module: `${this.log.module}:debug_log` }); } From bbc5fc55c29b9f2f7d2c0d9606c7f91b7704da8d Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Mon, 6 Jan 2025 11:17:20 -0300 Subject: [PATCH 2/2] Lint --- yarn-project/simulator/src/client/client_execution_context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/simulator/src/client/client_execution_context.ts b/yarn-project/simulator/src/client/client_execution_context.ts index dc8f2faa4a4..c4ac6fafc9b 100644 --- a/yarn-project/simulator/src/client/client_execution_context.ts +++ b/yarn-project/simulator/src/client/client_execution_context.ts @@ -23,7 +23,7 @@ import { computeUniqueNoteHash, siloNoteHash } from '@aztec/circuits.js/hash'; import { type FunctionAbi, type FunctionArtifact, type NoteSelector, countArgumentsSize } from '@aztec/foundation/abi'; import { AztecAddress } from '@aztec/foundation/aztec-address'; import { Fr } from '@aztec/foundation/fields'; -import { applyStringFormatting, createLogger } from '@aztec/foundation/log'; +import { createLogger } from '@aztec/foundation/log'; import { type NoteData, toACVMWitness } from '../acvm/index.js'; import { type PackedValuesCache } from '../common/packed_values_cache.js';