add serialize/deserialize impls

This commit is contained in:
jonesmarvin8
2026-03-02 11:54:41 -05:00
parent d863b763d1
commit 84abe02573
36 changed files with 207 additions and 163 deletions
+2 -2
View File
@@ -168,7 +168,7 @@ impl InitialData {
balance: 10_000,
data: Data::default(),
program_owner: DEFAULT_PROGRAM_ID,
nonce: Nonce(0),
nonce: 0u128.into(),
},
),
(
@@ -177,7 +177,7 @@ impl InitialData {
balance: 20_000,
data: Data::default(),
program_owner: DEFAULT_PROGRAM_ID,
nonce: Nonce(0),
nonce: 0u128.into(),
},
),
],
+1 -1
View File
@@ -136,7 +136,7 @@ impl TpsTestManager {
let message = putx::Message::try_new(
program.id(),
[pair[0].1, pair[1].1].to_vec(),
[Nonce(0u128)].to_vec(),
[0u128.into()].to_vec(),
amount,
)
.unwrap();
+2 -2
View File
@@ -10,7 +10,7 @@ use anyhow::Result;
use integration_tests::{BlockingTestContext, TIME_TO_WAIT_FOR_BLOCK_SECONDS};
use log::info;
use nssa::{Account, AccountId, PrivateKey, PublicKey, program::Program};
use nssa_core::{account::Nonce, program::DEFAULT_PROGRAM_ID};
use nssa_core::program::DEFAULT_PROGRAM_ID;
use tempfile::tempdir;
use wallet::WalletCore;
use wallet_ffi::{
@@ -523,7 +523,7 @@ fn test_wallet_ffi_get_account_private() -> Result<()> {
);
assert_eq!(account.balance, 10000);
assert!(account.data.is_empty());
assert_eq!(account.nonce, Nonce(0));
assert_eq!(account.nonce, 0u128.into());
unsafe {
wallet_ffi_free_account_data((&mut out_account) as *mut FfiAccount);