Let native_loader own native executable accounts
This commit is contained in:
@ -13,11 +13,11 @@ pub fn check_id(program_id: &Pubkey) -> bool {
|
||||
program_id.as_ref() == NATIVE_LOADER_PROGRAM_ID
|
||||
}
|
||||
|
||||
/// Create an executable account owned by the given program_id and shared object name.
|
||||
pub fn create_program_account(program_id: Pubkey, name: &str) -> Account {
|
||||
/// Create an executable account with the given shared object name.
|
||||
pub fn create_program_account(name: &str) -> Account {
|
||||
Account {
|
||||
tokens: 1,
|
||||
owner: program_id,
|
||||
owner: id(),
|
||||
userdata: name.as_bytes().to_vec(),
|
||||
executable: true,
|
||||
loader: id(),
|
||||
|
Reference in New Issue
Block a user