From 7ebf7ad81cc99c6c7ba2e06b8a3a6743491f63ba Mon Sep 17 00:00:00 2001 From: phn210 Date: Sat, 5 Oct 2024 02:52:49 +0200 Subject: [PATCH] fix proof enabled for zk program --- package-lock.json | 4 ++-- package.json | 2 +- src/utils/network.ts | 2 +- src/utils/utils.test.ts | 7 ------- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4963f33..9f14d15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@auxo-dev/auxo-libs", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@auxo-dev/auxo-libs", - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0", "dependencies": { "o1js": "1.8.0" diff --git a/package.json b/package.json index 9e00c7a..e7c93bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@auxo-dev/auxo-libs", - "version": "1.0.0", + "version": "1.0.1", "description": "", "author": "", "license": "Apache-2.0", diff --git a/src/utils/network.ts b/src/utils/network.ts index 44fa6af..4b66ca5 100644 --- a/src/utils/network.ts +++ b/src/utils/network.ts @@ -122,7 +122,7 @@ async function compile( console.log('Current memory usage:', getMemoryUsage(), 'MB'); if (logger && logger.info) console.log(`Compiling ${program.name}...`); if (profiler) profiler.start(`${program.name}.compile`); - if (proofsEnabled) + if (proofsEnabled !== undefined) result = await program.compile({ cache, forceRecompile, diff --git a/src/utils/utils.test.ts b/src/utils/utils.test.ts index 585a56f..1c81ba6 100644 --- a/src/utils/utils.test.ts +++ b/src/utils/utils.test.ts @@ -9,7 +9,6 @@ import { State, TokenId, UInt64, - Void, ZkProgram, method, state, @@ -158,12 +157,6 @@ describe('Network', () => { logger, proofsEnabled: undefined, }); - await compile(TestProgram, { - cache, - profiler, - logger, - proofsEnabled: true, - }); }); it('Should deploy zkApp', async () => {