a few missed set_data calls (#15846)
* a few missed set_data calls * another set data call
This commit is contained in:
parent
e50f284658
commit
efee8b62d7
|
@ -3833,7 +3833,7 @@ pub mod tests {
|
|||
let address = solana_sdk::pubkey::new_rand();
|
||||
let data = vec![1, 2, 3, 4, 5];
|
||||
let mut account = AccountSharedData::new(42, 5, &Pubkey::default());
|
||||
account.data = data.clone();
|
||||
account.set_data(data.clone());
|
||||
bank.store_account(&address, &account);
|
||||
|
||||
let req = format!(
|
||||
|
@ -3890,7 +3890,7 @@ pub mod tests {
|
|||
let address = Pubkey::new(&[9; 32]);
|
||||
let data = vec![1, 2, 3, 4, 5];
|
||||
let mut account = AccountSharedData::new(42, 5, &Pubkey::default());
|
||||
account.data = data.clone();
|
||||
account.set_data(data.clone());
|
||||
bank.store_account(&address, &account);
|
||||
|
||||
let non_existent_address = Pubkey::new(&[8; 32]);
|
||||
|
|
|
@ -726,7 +726,7 @@ pub mod tests {
|
|||
let owner = Pubkey::default();
|
||||
let data_len = 3_u64;
|
||||
let mut account = AccountSharedData::new(0, data_len as usize, &owner);
|
||||
account.data = b"abc".to_vec();
|
||||
account.set_data(b"abc".to_vec());
|
||||
let stored_meta = StoredMeta {
|
||||
write_version: 0,
|
||||
pubkey,
|
||||
|
|
Loading…
Reference in New Issue