(execution: &str)
| 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 | /// |