Minor updates
This commit is contained in:
parent
041cf55f58
commit
ed7c5e5b0c
@ -860,7 +860,7 @@ fn handle_prd(
|
|||||||
return Err(anyhow::Error::msg(format!("No available secrets for member {:?}", member)));
|
return Err(anyhow::Error::msg(format!("No available secrets for member {:?}", member)));
|
||||||
}
|
}
|
||||||
|
|
||||||
let clear_pcd = relevant_state.decrypt_pcd();
|
let clear_pcd = relevant_state.decrypt_pcd()?;
|
||||||
|
|
||||||
let roles = clear_pcd.extract_roles()?;
|
let roles = clear_pcd.extract_roles()?;
|
||||||
|
|
||||||
@ -1314,7 +1314,7 @@ pub fn create_update_message(
|
|||||||
let update_state = process.get_state_for_commitments_root(merkle_root_bin)?;
|
let update_state = process.get_state_for_commitments_root(merkle_root_bin)?;
|
||||||
|
|
||||||
// We must have at least the key for the roles field, otherwise we don't know who to send the message to
|
// We must have at least the key for the roles field, otherwise we don't know who to send the message to
|
||||||
let clear_state = update_state.decrypt_pcd().as_object().unwrap().clone();
|
let clear_state = update_state.decrypt_pcd()?.to_value_object()?;
|
||||||
|
|
||||||
let roles = Value::Object(clear_state).extract_roles()?;
|
let roles = Value::Object(clear_state).extract_roles()?;
|
||||||
|
|
||||||
@ -1476,7 +1476,7 @@ pub fn create_response_prd(init_commitment: String, merkle_root_hex: String) ->
|
|||||||
let update_state: &mut ProcessState = process.get_state_for_commitments_root(merkle_root)?;
|
let update_state: &mut ProcessState = process.get_state_for_commitments_root(merkle_root)?;
|
||||||
|
|
||||||
// We must have at least the key for the roles field, otherwise we don't know who to send the message to
|
// We must have at least the key for the roles field, otherwise we don't know who to send the message to
|
||||||
let clear_state = update_state.decrypt_pcd().as_object().unwrap().clone();
|
let clear_state = update_state.decrypt_pcd()?.to_value_object()?;
|
||||||
|
|
||||||
let roles = Value::Object(clear_state).extract_roles()?;
|
let roles = Value::Object(clear_state).extract_roles()?;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user