From 838d661c71cc0a8f38a28f92b1389f6b008f6ec2 Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Wed, 2 Aug 2023 09:41:24 +0000 Subject: [PATCH] use constant in test too --- .../circuits.js/src/kernel/public_kernel.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/yarn-project/circuits.js/src/kernel/public_kernel.test.ts b/yarn-project/circuits.js/src/kernel/public_kernel.test.ts index eb6ab33ea0f2..7bf12b129421 100644 --- a/yarn-project/circuits.js/src/kernel/public_kernel.test.ts +++ b/yarn-project/circuits.js/src/kernel/public_kernel.test.ts @@ -1,4 +1,10 @@ -import { CircuitError, MAX_PUBLIC_DATA_READS_PER_TX, makeTuple, simulatePublicKernelCircuit } from '../index.js'; +import { + CircuitError, + MAX_PUBLIC_DATA_READS_PER_CALL, + MAX_PUBLIC_DATA_READS_PER_TX, + makeTuple, + simulatePublicKernelCircuit, +} from '../index.js'; import { makePublicDataRead, makePublicKernelInputsWithEmptyOutput } from '../tests/factories.js'; describe('kernel/public_kernel', () => { @@ -34,7 +40,7 @@ describe('kernel/public_kernel', () => { await expect(simulatePublicKernelCircuit(input)).rejects.toThrow( new CircuitError( 7009, - `public_kernel_circuit: too many public data reads in one tx - array_push: capacity exceeded. Limit: 8 + `public_kernel_circuit: too many public data reads in one tx - array_push: capacity exceeded. Limit: ${MAX_PUBLIC_DATA_READS_PER_CALL} Refer to https://docs.aztec.network/aztec/protocol/errors for more information.`, ), );