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 6fe0451
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: Make this point to aztec-nr once the following issue is fixed: https://github.com/AztecProtocol/aztec-packages/issues/3590
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.
// Remove this once the following issue is fixed: https://github.com/AztecProtocol/aztec-packages/issues/3590
use dep::protocol_types;
// docs:start:unencrypted_import
use dep::aztec::log::emit_unencrypted_log;
Expand Down

0 comments on commit 6fe0451

Please sign in to comment.