Skip to content

Commit

Permalink
chore: Log manual contract class registrations
Browse files Browse the repository at this point in the history
To track when a pxe manually registered a deployed contract class on a
node.
  • Loading branch information
spalladino committed Dec 2, 2024
1 parent 7227b48 commit 4dda4e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yarn-project/aztec-node/src/aztec-node/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -852,10 +852,12 @@ export class AztecNodeService implements AztecNode {

// TODO(#10007): Remove this method
public addContractClass(contractClass: ContractClassPublic): Promise<void> {
this.log.info(`Adding contract class via API ${contractClass.id}`);
return this.contractDataSource.addContractClass(contractClass);
}

public addContractArtifact(address: AztecAddress, artifact: ContractArtifact): Promise<void> {
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);
}
Expand Down

0 comments on commit 4dda4e2

Please sign in to comment.