Programs were not spawned by SystemProgram (#1533)

* SystemProgram spawns programs
This commit is contained in:
jackcmay
2018-10-18 10:33:30 -07:00
committed by GitHub
parent 57a717056e
commit 0a819ec4e2
7 changed files with 65 additions and 50 deletions

View File

@ -114,13 +114,7 @@ pub extern "C" fn process(keyed_accounts: &mut [KeyedAccount], tx_data: &[u8]) -
LoaderInstruction::Finalize => {
keyed_accounts[0].account.executable = true;
keyed_accounts[0].account.loader_program_id = keyed_accounts[0].account.program_id;
keyed_accounts[0].account.program_id = *keyed_accounts[0].key;
trace!(
"LuaLoader::Finalize prog: {:?} loader {:?}",
keyed_accounts[0].account.program_id,
keyed_accounts[0].account.loader_program_id
);
trace!("LuaLoader::Finalize prog: {:?}", keyed_accounts[0].key);
}
}
} else {