MCPcopy Create free account
hub / github.com/ProvableHQ/sdk / from_string

Method from_string

wasm/src/programs/execution.rs:62–64  ·  view source on GitHub ↗
(execution: &str)

Source from the content-addressed store, hash-verified

60 /// @returns {Execution | Error} The wasm representation of an execution object.
61 #[wasm_bindgen(js_name = "fromString")]
62 pub fn from_string(execution: &str) -> Result<Execution, String> {
63 Ok(Self(ExecutionNative::from_str(execution).map_err(|e| e.to_string())?))
64 }
65
66 /// Returns the global state root of the execution.
67 ///

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected