mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-02-28 09:13:11 +00:00
fix nssa import issue with programs::amm
This commit is contained in:
parent
8095408e1b
commit
82966e652d
@ -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},
|
||||
|
||||
@ -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 = []
|
||||
@ -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};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user