a few missed set_data calls (#15846)

* a few missed set_data calls

* another set data call
This commit is contained in:
Jeff Washington (jwash) 2021-03-15 21:57:23 -05:00 committed by GitHub
parent e50f284658
commit efee8b62d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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]);

View File

@ -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,