Skip to content

Commit d2d4b30

Browse files
committed
fix(pxe): adapt pending-tagged-log test to plain-type PendingTaggedLog
1 parent 6f8a8f2 commit d2d4b30

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

yarn-project/pxe/src/contract_function_simulator/oracle/utility_execution.test.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
} from '@aztec/stdlib/contract';
2525
import type { AztecNode } from '@aztec/stdlib/interfaces/server';
2626
import { PublicKeys, deriveKeys, hashPublicKey } from '@aztec/stdlib/keys';
27-
import { AppTaggingSecret, AppTaggingSecretKind, PendingTaggedLog, SiloedTag } from '@aztec/stdlib/logs';
27+
import { AppTaggingSecret, AppTaggingSecretKind, SiloedTag } from '@aztec/stdlib/logs';
2828
import { Note, NoteDao } from '@aztec/stdlib/note';
2929
import { makeL2Tips, randomContractInstanceWithAddress } from '@aztec/stdlib/testing';
3030
import {
@@ -708,14 +708,17 @@ describe('Utility Execution test suite', () => {
708708
);
709709
expect(queried).toContain(constrainedModeTag.value.toString());
710710
expect(queried).not.toContain(sameSecretUnconstrainedModeTag.value.toString());
711-
const resultLogs = result.readAll(service).map(log => log.toFields());
712-
const expectedConstrainedModeLogFields = new PendingTaggedLog(
713-
log.logData,
714-
log.txHash,
715-
log.noteHashes,
716-
log.nullifiers[0],
717-
).toFields();
718-
expect(resultLogs).toEqual([expectedConstrainedModeLogFields]);
711+
const resultLogs = result.readAll(service);
712+
expect(resultLogs).toEqual([
713+
{
714+
log: log.logData,
715+
context: {
716+
txHash: log.txHash,
717+
uniqueNoteHashesInTx: log.noteHashes,
718+
firstNullifierInTx: log.nullifiers[0],
719+
},
720+
},
721+
]);
719722
});
720723
});
721724

0 commit comments

Comments
 (0)