Skip to content

Commit

Permalink
chore: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Apr 24, 2024
1 parent dc5614c commit fd64638
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ function generateNotesGetter(input: ContractArtifact) {
.join(',\n');

return `public static get notes(): ContractNotes<${notesUnionType}> {
const notes = this.artifact.outputs.globals.notes ? (this.artifact.outputs.globals.notes as any) : [];
return {
${noteMetadata}
} as ContractNotes<${notesUnionType}>;
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/foundation/src/abi/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export type ContractNote = {
*/
id: Fr;
/**
* Type of the note
* Type of the note (e.g., 'TransparentNote')
*/
typ: string;
};
Expand All @@ -291,7 +291,7 @@ export type FieldLayout = {
*/
slot: Fr;
/**
* Type being stored at the slot
* Type being stored at the slot (e.g., 'Map<AztecAddress, PublicMutable<U128>>')
*/
typ: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ describe('Private Execution test suite', () => {
const secret = new Fr(1n);
const secretHash = computeSecretHash(secret);
const note = new Note([secretHash]);
// @todo @LHerskind Need to investigate why this was working with `new Fr(5)` as the `example_set = 2` should have caused a failure.
// @todo @LHerskind (#6001) Need to investigate why this was working with `new Fr(5)` as the `example_set = 2` should have caused a failure.
const storageSlot = TestContractArtifact.storageLayout['example_set'].slot;
oracle.getNotes.mockResolvedValue([
{
Expand Down

0 comments on commit fd64638

Please sign in to comment.