make AccountSharedData.data private to abstract storage (#16091)
* format * 2 more tests * use
This commit is contained in:
committed by
GitHub
parent
43a116a84e
commit
66c42f62d8
@ -22,7 +22,7 @@ use solana_runtime::{
|
||||
},
|
||||
};
|
||||
use solana_sdk::{
|
||||
account::AccountSharedData,
|
||||
account::{AccountSharedData, ReadableAccount},
|
||||
bpf_loader, bpf_loader_deprecated, bpf_loader_upgradeable,
|
||||
client::SyncClient,
|
||||
clock::{DEFAULT_SLOTS_PER_EPOCH, MAX_PROCESSING_AGE},
|
||||
@ -990,10 +990,10 @@ fn test_program_bpf_invoke_sanity() {
|
||||
assert_eq!(invoke_program_id, account.owner);
|
||||
assert_eq!(
|
||||
MAX_PERMITTED_DATA_INCREASE,
|
||||
bank.get_account(&derived_key1).unwrap().data.len()
|
||||
bank.get_account(&derived_key1).unwrap().data().len()
|
||||
);
|
||||
for i in 0..20 {
|
||||
assert_eq!(i as u8, account.data[i]);
|
||||
assert_eq!(i as u8, account.data()[i]);
|
||||
}
|
||||
|
||||
// Attempt to realloc into unauthorized address space
|
||||
|
Reference in New Issue
Block a user