fmt, clippy

This commit is contained in:
Sergio Chouhy 2025-11-22 16:39:56 -03:00
parent bfe38b012e
commit 386d958c88
4 changed files with 14 additions and 6 deletions

View File

@ -142,7 +142,7 @@ fn validate_uniqueness_of_account_ids(pre_states: &[AccountWithMetadata]) -> boo
let number_of_accounts = pre_states.len();
let number_of_account_ids = pre_states
.iter()
.map(|account| account.account_id.clone())
.map(|account| account.account_id)
.collect::<HashSet<_>>()
.len();

View File

@ -56,7 +56,7 @@ pub fn execute_and_prove(
let mut program_outputs = Vec::new();
for _i in 0..MAX_NUMBER_CHAINED_CALLS {
let inner_receipt = execute_and_prove_program(&program, &pre_states, &instruction_data)?;
let inner_receipt = execute_and_prove_program(program, &pre_states, &instruction_data)?;
let program_output: ProgramOutput = inner_receipt
.journal

View File

@ -1,4 +1,3 @@
use std::collections::HashMap;
use crate::program_methods::{AUTHENTICATED_TRANSFER_ELF, PINATA_ELF, TOKEN_ELF};
use nssa_core::{

View File

@ -244,9 +244,18 @@ pub mod tests {
use std::collections::HashMap;
use crate::{
error::NssaError, execute_and_prove, privacy_preserving_transaction::{
circuit::{self, ProgramWithDependencies}, message::Message, witness_set::WitnessSet, PrivacyPreservingTransaction
}, program::Program, public_transaction, signature::PrivateKey, Address, PublicKey, PublicTransaction, V02State
Address, PublicKey, PublicTransaction, V02State,
error::NssaError,
execute_and_prove,
privacy_preserving_transaction::{
PrivacyPreservingTransaction,
circuit::{self, ProgramWithDependencies},
message::Message,
witness_set::WitnessSet,
},
program::Program,
public_transaction,
signature::PrivateKey,
};
use nssa_core::{