mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-25 11:21:12 +00:00
add serialize/deserialize impls
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user