Skip to content

Commit

Permalink
chore: fix some more imports (#8804)
Browse files Browse the repository at this point in the history
Continuation of
AztecProtocol/aztec-packages#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 AztecBot committed Sep 27, 2024
1 parent 527e711 commit 51576b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions 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 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

0 comments on commit 51576b3

Please sign in to comment.