fix nssa import issue with programs::amm

This commit is contained in:
jonesmarvin8 2026-02-24 18:18:23 -05:00
parent 8095408e1b
commit 82966e652d
3 changed files with 7 additions and 6 deletions

View File

@ -306,7 +306,7 @@ impl V02State {
}
}
#[cfg(test)]
#[cfg(any(test, feature = "test-utils"))]
impl V02State {
pub fn force_insert_account(&mut self, account_id: AccountId, account: Account) {
self.public_state.insert(account_id, account);
@ -317,9 +317,6 @@ impl V02State {
pub mod tests {
use std::collections::HashMap;
use token_core::{TokenDefinition, TokenHolding};
use nssa_core::{
Commitment, Nullifier, NullifierPublicKey, NullifierSecretKey, SharedSecretKey,
account::{Account, AccountId, AccountWithMetadata, Nonce, data::Data},

View File

@ -5,7 +5,11 @@ edition = "2024"
license = { workspace = true }
[dependencies]
nssa = { workspace = true, optional = true, features = ["test-utils"], default-features = true }
nssa_core.workspace = true
token_core.workspace = true
amm_core.workspace = true
nssa.workspace = true
[features]
with-nssa = ["nssa"]
test-utils = []

View File

@ -1,4 +1,4 @@
#![cfg(all(test, feature = "test-utils"))]
#![cfg(all(test, feature = "with-nssa"))]
use amm_core::PoolDefinition;
use nssa::{Account, AccountId, Data, PrivateKey, PublicKey, PublicTransaction, V02State, program::Program, public_transaction};