diff --git a/uniffi_aries_vcx/core/src/handlers/holder.rs b/uniffi_aries_vcx/core/src/handlers/holder.rs index b2ea99370a..be3d4f430d 100644 --- a/uniffi_aries_vcx/core/src/handlers/holder.rs +++ b/uniffi_aries_vcx/core/src/handlers/holder.rs @@ -102,11 +102,13 @@ impl Holder { )?) } - pub fn decline_offer(&self) -> VcxUniFFIResult { + pub fn decline_offer(&self, comment: Option) -> VcxUniFFIResult { let handler = self.handler.lock()?; Ok(serde_json::to_string( - &handler.clone().decline_offer(Some(""))?, + &handler + .clone() + .decline_offer(Some(&comment.unwrap_or("".to_owned())))?, )?) } diff --git a/uniffi_aries_vcx/core/src/vcx.udl b/uniffi_aries_vcx/core/src/vcx.udl index bc8ac6179e..2df09828e8 100644 --- a/uniffi_aries_vcx/core/src/vcx.udl +++ b/uniffi_aries_vcx/core/src/vcx.udl @@ -79,7 +79,7 @@ interface Holder { string get_msg_credential_request(); [Throws=VcxUniFFIError] - string decline_offer(); + string decline_offer(string? comment); [Throws=VcxUniFFIError] void process_credential(ProfileHolder profile, string credential);