Add LoaderInstruction::InvokeMain (#5116)

* Remove unreachable, untested runtime check

* tx_data -> ix_data

* Add LoaderInstruction::InvokeMain

* Add test and allow loaders to be registered statically.

* Fix clippy error
This commit is contained in:
Greg Fitzgerald
2019-07-16 10:45:32 -06:00
committed by GitHub
parent 176cec6215
commit 77ea8b9b3e
4 changed files with 163 additions and 90 deletions

View File

@ -18,6 +18,11 @@ pub enum LoaderInstruction {
///
/// The transaction must be signed by key[0]
Finalize,
/// Invoke the "main" entrypoint with the given data.
///
/// * key[0] - an executable account
InvokeMain { data: Vec<u8> },
}
pub fn write(