Boot SystemInstruction::Spawn
This commit is contained in:
@ -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 {
|
||||
|
@ -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,
|
||||
}
|
||||
|
@ -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)]
|
||||
|
Reference in New Issue
Block a user