diff --git a/wrappers/javascript/aries-askar-react-native/cpp/ariesAskar.cpp b/wrappers/javascript/aries-askar-react-native/cpp/ariesAskar.cpp index 2aef7e20..ce5cee8f 100644 --- a/wrappers/javascript/aries-askar-react-native/cpp/ariesAskar.cpp +++ b/wrappers/javascript/aries-askar-react-native/cpp/ariesAskar.cpp @@ -102,7 +102,8 @@ jsi::Value storeCopyTo(jsi::Runtime &rt, jsi::Object options) { state->rt = &rt; ErrorCode code = askar_store_copy( - targetUri.c_str(), keyMethod.length() ? keyMethod.c_str() : nullptr, + storeHandle, targetUri.c_str(), + keyMethod.length() ? keyMethod.c_str() : nullptr, passKey.length() ? passKey.c_str() : nullptr, recreate, callbackWithResponse, CallbackId(state));