From da1470d074f4884e61b51e450a661432c6f0a10f Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Mon, 2 Dec 2024 19:26:40 -0300 Subject: [PATCH] chore: Log manual contract class registrations (#10354) To track when a pxe manually registered a deployed contract class on a node. --- yarn-project/aztec-node/src/aztec-node/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yarn-project/aztec-node/src/aztec-node/server.ts b/yarn-project/aztec-node/src/aztec-node/server.ts index 4434785d41c..587d97371a4 100644 --- a/yarn-project/aztec-node/src/aztec-node/server.ts +++ b/yarn-project/aztec-node/src/aztec-node/server.ts @@ -852,10 +852,12 @@ export class AztecNodeService implements AztecNode { // TODO(#10007): Remove this method public addContractClass(contractClass: ContractClassPublic): Promise { + this.log.info(`Adding contract class via API ${contractClass.id}`); return this.contractDataSource.addContractClass(contractClass); } public addContractArtifact(address: AztecAddress, artifact: ContractArtifact): Promise { + this.log.info(`Adding contract artifact ${artifact.name} for ${address.toString()} via API`); // TODO: Node should validate the artifact before accepting it return this.contractDataSource.addContractArtifact(address, artifact); }