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

Method from_string

wasm/src/programs/program.rs:42–44  ·  view source on GitHub ↗
(program: &str)

Source from the content-addressed store, hash-verified

40 /// @returns {Program} Program object
41 #[wasm_bindgen(js_name = "fromString")]
42 pub fn from_string(program: &str) -> Result<Program, String> {
43 Ok(Self(ProgramNative::from_str(program).map_err(|err| err.to_string())?))
44 }
45
46 /// Get a string representation of the program
47 ///

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected