add clone property and shift feature restriction

This commit is contained in:
jonesmarvin8 2026-03-02 10:15:55 -05:00
parent 157495ad59
commit 227f006179
5 changed files with 6 additions and 5 deletions

Binary file not shown.

View File

@ -16,7 +16,7 @@ use crate::{
pub const MAX_NUMBER_CHAINED_CALLS: usize = 10;
#[derive(BorshSerialize, BorshDeserialize)]
#[derive(Clone, BorshSerialize, BorshDeserialize)]
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
pub(crate) struct CommitmentSet {
merkle_tree: MerkleTree,
@ -64,6 +64,7 @@ impl CommitmentSet {
}
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
#[derive(Clone)]
struct NullifierSet(BTreeSet<Nullifier>);
impl NullifierSet {
@ -104,7 +105,7 @@ impl BorshDeserialize for NullifierSet {
}
}
#[derive(BorshSerialize, BorshDeserialize)]
#[derive(Clone, BorshSerialize, BorshDeserialize)]
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
pub struct V02State {
public_state: HashMap<AccountId, Account>,

View File

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

View File

@ -7,5 +7,7 @@ pub mod new_definition;
pub mod remove;
pub mod swap;
#[cfg(all(test, feature = "with-nssa"))]
mod full_tests;
#[cfg(test)]
mod tests;

View File

@ -1,4 +1,4 @@
#![cfg(test)]
use std::num::NonZero;