Skip to content

Commit

Permalink
use constant in test too
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari committed Aug 2, 2023
1 parent a8fddaa commit 838d661
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions yarn-project/circuits.js/src/kernel/public_kernel.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down Expand Up @@ -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.`,
),
);
Expand Down

0 comments on commit 838d661

Please sign in to comment.