From ef820dc32302966706b577a32f231e274aaffea1 Mon Sep 17 00:00:00 2001 From: TiagoV Date: Thu, 14 Sep 2023 15:28:15 +0100 Subject: [PATCH] refs #1 - fixes the concurrency problem: --- keyssi/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyssi/index.js b/keyssi/index.js index d56f996..39b7e86 100644 --- a/keyssi/index.js +++ b/keyssi/index.js @@ -7,7 +7,7 @@ const parse = (ssiString, options) => { }; const createSeedSSI = (domain, privateKey, vn, hint, callback) => { - return we_createSeedSSI(openDSU.loadAPI("sc").getMainEnclave(), domain, privateKey, vn, hint, callback); + return we_createSeedSSI(undefined, domain, privateKey, vn, hint, callback); }; const isJson = (obj) => { @@ -168,7 +168,7 @@ const createTemplateWalletSSI = (domain, arrayWIthCredentials, hint) => { }; const createConstSSI = (domain, constString, vn, hint) => { - return we_createConstSSI(openDSU.loadAPI("sc").getMainEnclave(), domain, constString, vn, hint) + return we_createConstSSI(undefined, domain, constString, vn, hint) }; const we_createConstSSI = (enclave, domain, constString, vn, hint, callback) => { @@ -181,7 +181,7 @@ const we_createConstSSI = (enclave, domain, constString, vn, hint, callback) => }; const createArraySSI = (domain, arr, vn, hint, callback) => { - return we_createArraySSI(openDSU.loadAPI("sc").getMainEnclave(), domain, arr, vn, hint); + return we_createArraySSI(undefined, domain, arr, vn, hint); } const we_createArraySSI = (enclave, domain, arr, vn, hint, callback) => {