Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 5, 2023
1 parent 120aba6 commit 9964f20
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion yarn-project/acir-simulator/src/acvm/oracle/oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class Oracle {
const logPayload = Buffer.concat(message.map(charBuffer => convertACVMFieldToBuffer(charBuffer).subarray(-1)));
const log = new UnencryptedL2Log(
AztecAddress.fromString(contractAddress),
FunctionSelector.fromField(fromACVMField(eventSelector)),
FunctionSelector.fromField(fromACVMField(eventSelector)), // TODO https://github.com/AztecProtocol/aztec-packages/issues/2704
logPayload,
);

Expand Down
5 changes: 4 additions & 1 deletion yarn-project/types/src/logs/log_filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export type LogFilter = {
toBlock?: number;
/** The contract address to filter logs by. */
contractAddress?: AztecAddress;
/** The event selector to filter logs by. */
/**
* Selector of the event/log topic.
* TODO: https://github.com/AztecProtocol/aztec-packages/issues/2704
*/
selector?: FunctionSelector;
};
5 changes: 4 additions & 1 deletion yarn-project/types/src/logs/unencrypted_l2_log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export class UnencryptedL2Log {
* TODO: Optimize this once it makes sense.
*/
public readonly contractAddress: AztecAddress,
/** Selector of the event/log topic. */
/**
* Selector of the event/log topic.
* TODO: https://github.com/AztecProtocol/aztec-packages/issues/2704
*/
public readonly selector: FunctionSelector,
/** The data contents of the log. */
public readonly data: Buffer,
Expand Down

0 comments on commit 9964f20

Please sign in to comment.