From a2225e15074191fe2cb919fc3ead79f268500591 Mon Sep 17 00:00:00 2001 From: Yu Jiang Tham Date: Wed, 17 Jan 2024 13:03:38 -0800 Subject: [PATCH] Update sdk-core and validate on build --- circuit/js/package.json | 2 +- circuit/js/pnpm-lock.yaml | 19 +++++-------------- client/package.json | 2 +- client/src/sendQuery.ts | 2 +- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/circuit/js/package.json b/circuit/js/package.json index acfdccc9..57cb7cef 100644 --- a/circuit/js/package.json +++ b/circuit/js/package.json @@ -24,7 +24,7 @@ "crypto" ], "dependencies": { - "@axiom-crypto/core": "2.3.0-rc2.3", + "@axiom-crypto/core": "2.3.1", "@axiom-crypto/halo2-lib-js": "0.2.14-rc.0", "@axiom-crypto/halo2-wasm": "0.2.11-rc.1", "@axiom-crypto/tools": "2.0.0", diff --git a/circuit/js/pnpm-lock.yaml b/circuit/js/pnpm-lock.yaml index fc1aa5ba..9794b3ef 100644 --- a/circuit/js/pnpm-lock.yaml +++ b/circuit/js/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: '@axiom-crypto/core': - specifier: 2.3.0-rc2.3 - version: 2.3.0-rc2.3 + specifier: 2.3.1 + version: 2.3.1 '@axiom-crypto/halo2-lib-js': specifier: 0.2.14-rc.0 version: 0.2.14-rc.0 @@ -70,10 +70,10 @@ packages: '@jridgewell/trace-mapping': 0.3.20 dev: true - /@axiom-crypto/core@2.3.0-rc2.3: - resolution: {integrity: sha512-qs5KFwdpYBjFQEHvyUXRiTTC9b5ptPblvDKZhEqlb+SgcIydoMekm7mniPThn4WKcxaBHKKYJKXWjhbMc+p71g==} + /@axiom-crypto/core@2.3.1: + resolution: {integrity: sha512-+X1CrAW23aQxi/EEG4bxROVoUWCHOtEeEtQHmEwQvvzYcPwRUhrJ8q7Ca5PFQ1B2uUnWi9jXaCOYJDvnaEEvBQ==} dependencies: - '@axiom-crypto/tools': 0.3.36-rc2.3 + '@axiom-crypto/tools': 2.0.0 axios: 1.6.3 bs58: 5.0.0 ethers: 6.9.0 @@ -99,15 +99,6 @@ packages: resolution: {integrity: sha512-30yASHZXIIGILRJHvOPDZ43gATCgGzkl9wvbK+on1lC3lnMO5iF3aOsqIV8bPkTsh9OhpxsBA32FUkfZ+vZNyA==} dev: false - /@axiom-crypto/tools@0.3.36-rc2.3: - resolution: {integrity: sha512-2oUtSkeyQCGwmTei9HdUUHiFdzV88SB3StVgev7kdfAWriZ9zuPdvbmr072FrXC7nNEsRnzKsJbmjQgYXrNKmg==} - dependencies: - ethers: 6.9.0 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - dev: false - /@axiom-crypto/tools@2.0.0: resolution: {integrity: sha512-zoNlRRTyS98xysKrui2g+/f+A6+LiSi7wNw1m+xbCcDkY5/yz52VkbpGt+DTfo5FboiqTaXAq5f5CidNg4Z0mQ==} dependencies: diff --git a/client/package.json b/client/package.json index 76c0bd3e..6a0c0547 100644 --- a/client/package.json +++ b/client/package.json @@ -25,7 +25,7 @@ ], "dependencies": { "@axiom-crypto/circuit": "0.2.2-rc2.2", - "@axiom-crypto/core": "2.3.0-rc2.3", + "@axiom-crypto/core": "2.3.1", "chalk": "^4.1.2", "commander": "^11.1.0", "ethers": "^6.8.1", diff --git a/client/src/sendQuery.ts b/client/src/sendQuery.ts index 96a64cfb..9743653e 100644 --- a/client/src/sendQuery.ts +++ b/client/src/sendQuery.ts @@ -43,7 +43,7 @@ export const buildSendQuery = async (input: { userSalt, refundee, dataQuery, - } = await qb.build(); + } = await qb.build(true); const payment = await qb.calculateFee(); const id = await qb.getQueryId(input.caller); const abi = input.axiom.getAxiomQueryAbi();