pub fn compile_script(source: &str) -> Result<Vec<u8>, ScriptError>Expand description
Compiles source as an automation script, returning the wasm bytes.
No rpc host natives are registered: the compiler declares every registered native as a wasm import, and the trigger runner links none of them, so a module built with them would not load.
ยงErrors
ScriptError::Compile with the reader or compiler message, which carries
the source position where the compiler gives one.