sdk.rs 426 B

123456789101112131415
  1. use steel::*;
  2. use crate::prelude::*;
  3. pub fn initialize_account(signer: Pubkey, new_account_key: Pubkey) -> Instruction {
  4. Instruction {
  5. program_id: crate::ID,
  6. accounts: vec![
  7. AccountMeta::new(signer, true),
  8. AccountMeta::new(new_account_key, false),
  9. AccountMeta::new_readonly(system_program::ID, false),
  10. ],
  11. data: InitializeAccount {}.to_bytes(),
  12. }
  13. }