Skip to content

Commit

Permalink
chore: fix some more imports (#8804)
Browse files Browse the repository at this point in the history
Continuation of
#8760 and #8748. We
still get some private exports due to
noir-lang/noir#6154, but hopefully those will be
fixed soon.
  • Loading branch information
nventuro authored and Rumata888 committed Sep 27, 2024
1 parent 714e608 commit 27165cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions noir-projects/aztec-nr/aztec/src/context/public_context.nr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use dep::protocol_types::constants::MAX_FIELD_VALUE;
use dep::protocol_types::traits::{Serialize, Deserialize, Empty};
use dep::protocol_types::abis::function_selector::FunctionSelector;
use crate::context::gas::GasOpts;
use crate::hash::ArgsHasher;

pub struct PublicContext {
args_hash: Option<Field>,
Expand Down Expand Up @@ -204,7 +203,6 @@ fn gas_for_call(user_gas: GasOpts) -> [Field; 2] {
}

// Unconstrained opcode wrappers (do not use directly).
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/6420): reconsider.
unconstrained fn address() -> AztecAddress {
address_opcode()
}
Expand Down
4 changes: 2 additions & 2 deletions noir-projects/aztec-nr/aztec/src/test/mocks/mock_note.nr
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::{
context::PrivateContext, generators::Ga1 as G_val, hash::poseidon2_hash_with_separator,
context::PrivateContext, generators::Ga1 as G_val,
note::{note_header::NoteHeader, note_interface::NoteInterface, utils::compute_note_hash_for_nullify}
};

use dep::protocol_types::{address::AztecAddress, constants::GENERATOR_INDEX__NOTE_NULLIFIER, traits::Eq};
use dep::protocol_types::{address::AztecAddress, constants::GENERATOR_INDEX__NOTE_NULLIFIER, hash::poseidon2_hash_with_separator};
use dep::std::{embedded_curve_ops::multi_scalar_mul, hash::from_field_unsafe};
use crate::note::note_interface::NullifiableNote;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{
utils::arrays::{array_length, sort_by_counter::compare_by_counter_empty_padded_asc, get_sorted_tuple::get_sorted_tuple}
};

pub(crate) struct CombinedOrderHint {
pub struct CombinedOrderHint {
counter: u32,
original_index: u32,
}
Expand Down

0 comments on commit 27165cf

Please sign in to comment.