Skip to content

Commit

Permalink
return resolved nquads instead of empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
S3bb1 committed Nov 27, 2023
1 parent 9806918 commit 285c703
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/c_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -803,13 +803,12 @@ pub extern "C" fn execute_vade(
request_function_callback,
)
.map_err(stringify_generic_error)?;
vade_evan
Ok(vade_evan
.helper_convert_credential_to_nquads(
arguments_vec.get(0).unwrap_or_else(|| &no_args),
)
.await
.map_err(stringify_vade_evan_error)?;
Ok("".to_string())
.map_err(stringify_vade_evan_error)?)
}
}),
#[cfg(any(feature = "vc-zkp-bbs"))]
Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ async fn main() -> Result<()> {
"credential",
None,
))
.await?;
"".to_string()
.await?
}
#[cfg(all(feature = "vc-zkp-bbs", feature = "did-sidetree"))]
("create_self_issued_credential", Some(sub_m)) => {
Expand Down
5 changes: 2 additions & 3 deletions src/wasm_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,11 @@ cfg_if::cfg_if! {
credential: String,
) -> Result<String, JsValue> {
let mut vade_evan = get_vade_evan(None).map_err(jsify_generic_error)?;
vade_evan
Ok(vade_evan
.helper_convert_credential_to_nquads(
&credential,
).await
.map_err(jsify_vade_evan_error)?;
Ok("".to_string())
.map_err(jsify_vade_evan_error)?)
}

#[cfg(all(feature = "vc-zkp-bbs", feature = "did-sidetree"))]
Expand Down

0 comments on commit 285c703

Please sign in to comment.