Skip to content
This repository was archived by the owner on Jul 31, 2019. It is now read-only.

Commit 2b206ed

Browse files
rytmarshglowkey
authored and
glowkey
committed
fixed link secret unwrap failure (#314)
1 parent d3cf2e3 commit 2b206ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vcx/libvcx/src/disclosed_proof.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Default for DisclosedProof {
4242
state: VcxStateType::VcxStateNone,
4343
proof_request: None,
4444
proof: None,
45-
link_secret_alias: settings::get_config_value(settings::CONFIG_LINK_SECRET_ALIAS).unwrap(),
45+
link_secret_alias: settings::DEFAULT_LINK_SECRET_ALIAS.to_string(),
4646
their_did: None,
4747
their_vk: None,
4848
agent_did: None,

vcx/libvcx/src/utils/libindy/anoncreds.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ pub fn libindy_prover_create_credential_req(prover_did: &str,
307307
let prover_did = CString::new(prover_did).map_err(map_string_error)?;
308308
let credential_offer_json = CString::new(credential_offer_json).map_err(map_string_error)?;
309309
let credential_def_json = CString::new(credential_def_json).map_err(map_string_error)?;
310-
let master_secret_name = CString::new(master_secret_id.unwrap_or(settings::get_config_value(settings::CONFIG_LINK_SECRET_ALIAS).unwrap())).map_err(map_string_error)?;
310+
let master_secret_name = CString::new(master_secret_id.unwrap_or(settings::DEFAULT_LINK_SECRET_ALIAS.to_string())).map_err(map_string_error)?;
311311

312312
unsafe {
313313
indy_function_eval(

0 commit comments

Comments
 (0)