Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 2, 2024
1 parent 8482b3d commit 7eec1f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions noir/aztec_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ fn generate_selector_impl(structure: &NoirStruct) -> TypeImpl {
)))]);

// Define `FunctionSelector` return type
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/3590): Make this point to aztec-nr once the relevant issue is fixed.
let return_type_path = chained_path!("protocol_types", "abis", "function_selector", "FunctionSelector");
let return_type = FunctionReturnType::Ty(make_type(UnresolvedTypeData::Named(return_type_path, vec![])));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ contract Test {
AztecAddress,
EthAddress,
};
// The following import is here in order to make the event macro work because the macro doesn't add the import.
// It doesn't add the import because in the future we will re-export all the types via aztec-nr and aztec-nr is
// already auto-imported by the macros.
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/3590): Remove this once the issue is fixed.
use dep::protocol_types;
// docs:start:unencrypted_import
use dep::aztec::log::emit_unencrypted_log;
Expand Down

0 comments on commit 7eec1f8

Please sign in to comment.