Boot SystemInstruction::Spawn

This commit is contained in:
Greg Fitzgerald
2019-02-14 12:18:36 -07:00
parent e1e84d4465
commit 4e4a1643c4
7 changed files with 0 additions and 32 deletions

View File

@ -33,10 +33,6 @@ pub enum ProgramError {
/// SystemInstruction::Assign was attempted on an account unowned by the system program
AssignOfUnownedAccount,
/// SystemInstruction::Spawn was attempted on an account that was not finalized by
/// LoaderInstruction::Finalize
AccountNotFinalized,
}
impl std::fmt::Display for ProgramError {

View File

@ -20,7 +20,4 @@ pub enum SystemInstruction {
/// * Transaction::keys[0] - source
/// * Transaction::keys[1] - destination
Move { tokens: u64 },
/// Spawn a new program from an account
Spawn,
}

View File

@ -107,18 +107,6 @@ impl SystemTransaction {
instructions,
)
}
/// Create and sign new SystemInstruction::Spawn transaction
pub fn new_spawn(from_keypair: &Keypair, last_id: Hash, fee: u64) -> Transaction {
let spawn = SystemInstruction::Spawn;
Transaction::new(
from_keypair,
&[],
system_program::id(),
&spawn,
last_id,
fee,
)
}
}
#[cfg(test)]