diff --git a/src/api.rs b/src/api.rs index 1149277..b31f9e8 100644 --- a/src/api.rs +++ b/src/api.rs @@ -549,7 +549,7 @@ pub fn get_opreturn(transaction: String) -> ApiResult { #[wasm_bindgen] pub fn process_commit_new_state(mut process: Process, state_id: String, new_tip: String) -> ApiResult { let state_id_array: [u8; 32] = Vec::from_hex(&state_id)?.try_into().unwrap(); - let new_tip = OutPoint::from_str(&new_tip)?; + let new_tip = OutPoint::new(Txid::from_str(&new_tip)?, 0); let new_state: ProcessState; if let Ok(commited_state) = process.get_state_for_id(&state_id_array) { new_state = commited_state.clone();