This commit is contained in:
Sergio Chouhy 2025-09-15 18:39:36 -03:00
parent 2d22b170d4
commit 37b5aec264
3 changed files with 8 additions and 7 deletions

View File

@ -8,8 +8,8 @@ use reqwest::Client;
use serde_json::Value;
use crate::rpc_primitives::requests::{
GetAccountRequest, GetAccountResponse, GetAccountsNoncesRequest,
GetAccountsNoncesResponse, GetTransactionByHashRequest, GetTransactionByHashResponse,
GetAccountRequest, GetAccountResponse, GetAccountsNoncesRequest, GetAccountsNoncesResponse,
GetTransactionByHashRequest, GetTransactionByHashResponse,
};
use crate::sequencer_client::json::AccountInitialData;
use crate::{SequencerClientError, SequencerRpcError};
@ -116,9 +116,7 @@ impl SequencerClient {
let req = serde_json::to_value(block_req)?;
let resp = self
.call_method_with_payload("get_account", req)
.await?;
let resp = self.call_method_with_payload("get_account", req).await?;
let resp_deser = serde_json::from_value(resp)?;

View File

@ -294,7 +294,10 @@ pub async fn test_get_account_wallet_command() {
.unwrap()
.account;
assert_eq!(account.program_owner, Program::authenticated_transfer_program().id());
assert_eq!(
account.program_owner,
Program::authenticated_transfer_program().id()
);
assert_eq!(account.balance, 10000);
assert!(account.data.is_empty());
assert_eq!(account.nonce, 0);

View File

@ -7,8 +7,8 @@ pub mod public_transaction;
mod signature;
mod state;
pub use nssa_core::account::Account;
pub use address::Address;
pub use nssa_core::account::Account;
pub use privacy_preserving_transaction::{
PrivacyPreservingTransaction, circuit::execute_and_prove,
};