zkenclave-sdk 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -426,7 +426,9 @@ var ZKProofClient = class {
|
|
|
426
426
|
wasmReady = false;
|
|
427
427
|
constructor(config) {
|
|
428
428
|
this.config = config ?? { useRealProofs: true };
|
|
429
|
-
this.
|
|
429
|
+
if (this.config.useRealProofs !== false) {
|
|
430
|
+
this.loadWasm();
|
|
431
|
+
}
|
|
430
432
|
}
|
|
431
433
|
async loadWasm() {
|
|
432
434
|
if (wasmModule) {
|
package/dist/index.mjs
CHANGED
|
@@ -372,7 +372,9 @@ var ZKProofClient = class {
|
|
|
372
372
|
wasmReady = false;
|
|
373
373
|
constructor(config) {
|
|
374
374
|
this.config = config ?? { useRealProofs: true };
|
|
375
|
-
this.
|
|
375
|
+
if (this.config.useRealProofs !== false) {
|
|
376
|
+
this.loadWasm();
|
|
377
|
+
}
|
|
376
378
|
}
|
|
377
379
|
async loadWasm() {
|
|
378
380
|
if (wasmModule) {
|