Skip to content

Commit c2d0a3a

Browse files
committed
fix(authwit): update split-time consumer imports
- schnorr/simulated_schnorr account contracts and uniswap_contract still imported authwit::common::*; rename the path to authwit::utils::* to match the split. - app_subscription_contract: revert the spurious 'use public_checks::utils::privately_check_block_number' (the public_checks crate is no longer a separate crate after #23215 moved the helpers into aztec-nr) back to 'use aztec::public_checks::privately_check_block_number'.
1 parent 844222b commit c2d0a3a

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

  • noir-projects/noir-contracts/contracts
    • account
      • schnorr_account_contract/src
      • simulated_ecdsa_account_contract/src
      • simulated_schnorr_account_contract/src
    • app

noir-projects/noir-contracts/contracts/account/schnorr_account_contract/src/main.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ pub contract SchnorrAccount {
99
use aztec::{
1010
authwit::{
1111
account::AccountActions,
12-
common::{compute_authwit_message_hash, compute_authwit_nullifier},
1312
entrypoint::app::AppPayload,
13+
utils::{compute_authwit_message_hash, compute_authwit_nullifier},
1414
},
1515
context::PrivateContext,
1616
hash::compute_siloed_nullifier,

noir-projects/noir-contracts/contracts/account/simulated_ecdsa_account_contract/src/main.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use aztec::macros::aztec;
88
#[aztec]
99
pub contract SimulatedEcdsaAccount {
1010
use aztec::{
11-
authwit::{account::AccountActions, common::IS_VALID_SELECTOR, entrypoint::app::AppPayload},
11+
authwit::{account::AccountActions, entrypoint::app::AppPayload, utils::IS_VALID_SELECTOR},
1212
context::PrivateContext,
1313
macros::{functions::{allow_phase_change, external, view}, storage::storage},
1414
messages::encoding::MESSAGE_CIPHERTEXT_LEN,

noir-projects/noir-contracts/contracts/account/simulated_schnorr_account_contract/src/main.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use aztec::macros::aztec;
1010
#[aztec]
1111
pub contract SimulatedSchnorrAccount {
1212
use aztec::{
13-
authwit::{account::AccountActions, common::IS_VALID_SELECTOR, entrypoint::app::AppPayload},
13+
authwit::{account::AccountActions, entrypoint::app::AppPayload, utils::IS_VALID_SELECTOR},
1414
context::PrivateContext,
1515
macros::{functions::{allow_phase_change, external, view}, storage::storage},
1616
messages::encoding::MESSAGE_CIPHERTEXT_LEN,

noir-projects/noir-contracts/contracts/app/app_subscription_contract/src/main.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub contract AppSubscription {
5252
state_vars::{Owned, PrivateMutable, PublicImmutable},
5353
utils::comparison::Comparator,
5454
};
55-
use public_checks::utils::privately_check_block_number;
55+
use aztec::public_checks::privately_check_block_number;
5656
use token::Token;
5757

5858
#[storage]

noir-projects/noir-contracts/contracts/app/uniswap_contract/src/main.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use aztec::macros::aztec;
99
pub contract Uniswap {
1010
use aztec::{
1111
authwit::{
12-
common::compute_authwit_message_hash_from_call,
1312
public::{assert_current_call_valid_authwit_public, set_authorized},
13+
utils::compute_authwit_message_hash_from_call,
1414
},
1515
macros::{functions::{external, initializer, only_self}, storage::storage},
1616
protocol::{abis::function_selector::FunctionSelector, address::{AztecAddress, EthAddress}, traits::ToField},

0 commit comments

Comments
 (0)