Skip to content

Commit

Permalink
nuking unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed May 10, 2024
1 parent 2408182 commit b2cd0fb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
1 change: 0 additions & 1 deletion noir-projects/aztec-nr/value-note/src/utils.nr
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use dep::aztec::prelude::{AztecAddress, PrivateContext, PrivateSet, NoteGetterOptions};
use dep::aztec::note::note_getter_options::SortOrder;
use dep::aztec::keys::getters::get_ivpk_m;
use crate::{filter::filter_notes_min_sum, value_note::{ValueNote, VALUE_NOTE_LEN}};

// Sort the note values (0th field) in descending order.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,19 @@ mod subscription_note;
mod dapp_payload;

contract AppSubscription {
use dep::std;
use crate::dapp_payload::DAppPayload;

use dep::aztec::prelude::{
use crate::{dapp_payload::DAppPayload, subscription_note::{SubscriptionNote, SUBSCRIPTION_NOTE_LEN}};
use dep::{
aztec::{
prelude::{
AztecAddress, FunctionSelector, PrivateContext, NoteHeader, Map, PrivateMutable, PublicMutable,
SharedImmutable
},
protocol_types::traits::is_empty
},
authwit::{account::AccountActions, auth_witness::get_auth_witness, auth::assert_current_call_valid_authwit},
gas_token::GasToken, token::Token
};

use dep::aztec::protocol_types::traits::is_empty;

use dep::aztec::{context::Context, keys::getters::get_ivpk_m};
use dep::authwit::{account::AccountActions, auth_witness::get_auth_witness, auth::assert_current_call_valid_authwit};

use crate::subscription_note::{SubscriptionNote, SUBSCRIPTION_NOTE_LEN};

use dep::gas_token::GasToken;
use dep::token::Token;

#[aztec(storage)]
struct Storage {
// The following is only needed in private but we use ShareImmutable here instead of PrivateImmutable because
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ describe('Private Execution test suite', () => {
throw new Error(`Unknown address ${address}`);
});
// This oracle gets called when reading ivpk_m from key registry --> we return zero witness indicating that
// the keys were not registered. This triggers non-registered keys flows in which getCompleteAddress oracle
// the keys were not registered. This triggers non-registered keys flow in which getCompleteAddress oracle
// gets called and we constrain the result by hashing address preimage and checking it matches.
oracle.getPublicDataTreeWitness.mockResolvedValue(
new PublicDataWitness(
Expand Down

0 comments on commit b2cd0fb

Please sign in to comment.