mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-05 14:53:06 +00:00
fmt
This commit is contained in:
parent
2d22b170d4
commit
37b5aec264
@ -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)?;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user