From 18ab45be865c0a9b4b226b56c3de27792e3465ee Mon Sep 17 00:00:00 2001 From: beltram Date: Thu, 4 Jan 2024 18:50:40 +0100 Subject: [PATCH] fix: null pointer in Javascript when calling 'new_oidc_challenge_response' --- crypto-ffi/src/wasm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto-ffi/src/wasm.rs b/crypto-ffi/src/wasm.rs index e4363b88c3..10d53815e7 100644 --- a/crypto-ffi/src/wasm.rs +++ b/crypto-ffi/src/wasm.rs @@ -2758,7 +2758,7 @@ impl E2eiEnrollment { } /// See [core_crypto::e2e_identity::WireE2eIdentity::new_oidc_challenge_response] - pub fn new_oidc_challenge_response(&mut self, cc: CoreCrypto, challenge: Uint8Array) -> Promise { + pub fn new_oidc_challenge_response(&mut self, cc: &CoreCrypto, challenge: Uint8Array) -> Promise { let cc = cc.inner.clone(); let this = self.0.clone(); future_to_promise(