Account->AccountSharedData (#15691)

This commit is contained in:
Jeff Washington (jwash)
2021-03-09 15:06:07 -06:00
committed by GitHub
parent 61c7ce857e
commit 8a3135d17b
71 changed files with 2032 additions and 1161 deletions

View File

@ -1,10 +1,10 @@
use crate::account::Account;
use crate::account::AccountSharedData;
crate::declare_id!("NativeLoader1111111111111111111111111111111");
/// Create an executable account with the given shared object name.
pub fn create_loadable_account(name: &str, lamports: u64) -> Account {
Account {
pub fn create_loadable_account(name: &str, lamports: u64) -> AccountSharedData {
AccountSharedData {
lamports,
owner: id(),
data: name.as_bytes().to_vec(),