1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use crate::account::Account; const ID: [u8; 32] = [ 5, 135, 132, 191, 20, 139, 164, 40, 47, 176, 18, 87, 72, 136, 169, 241, 83, 160, 125, 173, 247, 101, 192, 69, 92, 154, 151, 3, 128, 0, 0, 0, ]; crate::solana_name_id!(ID, "NativeLoader1111111111111111111111111111111"); /// Create an executable account with the given shared object name. pub fn create_loadable_account(name: &str) -> Account { Account { lamports: 1, owner: id(), data: name.as_bytes().to_vec(), executable: true, } }