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

@ -80,11 +80,6 @@ pub fn entrypoint(
keyed_accounts[from].account.tokens -= tokens;
keyed_accounts[to].account.tokens += tokens;
}
SystemInstruction::Spawn => {
if !keyed_accounts[from].account.executable {
Err(ProgramError::AccountNotFinalized)?;
}
}
}
Ok(())
} else {

View File

@ -39,9 +39,6 @@ fn load_program(bank: &Bank, from: &Keypair, loader_id: Pubkey, program: Vec<u8>
let tx = LoaderTransaction::new_finalize(&program_account, loader_id, bank.last_id(), 0);
bank.process_transaction(&tx).unwrap();
let tx = SystemTransaction::new_spawn(&program_account, bank.last_id(), 0);
bank.process_transaction(&tx).unwrap();
program_account.pubkey()
}