diff --git a/yarn-project/circuits.js/src/contract/artifact_hash.test.ts b/yarn-project/circuits.js/src/contract/artifact_hash.test.ts index af06a189075..45cc32d5138 100644 --- a/yarn-project/circuits.js/src/contract/artifact_hash.test.ts +++ b/yarn-project/circuits.js/src/contract/artifact_hash.test.ts @@ -1,14 +1,8 @@ import { type ContractArtifact } from '@aztec/foundation/abi'; -import { loadContractArtifact } from '@aztec/types/abi'; -import type { NoirCompiledContract } from '@aztec/types/noir'; -import { readFileSync } from 'fs'; - -import { getPathToFixture, getTestContractArtifact } from '../tests/fixtures.js'; +import { getTestContractArtifact } from '../tests/fixtures.js'; import { computeArtifactHash } from './artifact_hash.js'; -const TEST_CONTRACT_ARTIFACT_HASH = `"0x19142676527045a118066698e292cc35db16ab4d7bd16610d35d2e1c607eb8b2"`; - describe('ArtifactHash', () => { it('calculates the artifact hash', () => { const emptyArtifact: ContractArtifact = { @@ -31,19 +25,8 @@ describe('ArtifactHash', () => { const testArtifact = getTestContractArtifact(); const calculatedArtifactHash = computeArtifactHash(testArtifact).toString(); - expect(calculatedArtifactHash).toMatchInlineSnapshot(TEST_CONTRACT_ARTIFACT_HASH); for (let i = 0; i < 1000; i++) { expect(computeArtifactHash(testArtifact).toString()).toBe(calculatedArtifactHash); } }); - - it('calculates the test contract artifact hash', () => { - const path = getPathToFixture('Test.test.json'); - const content = JSON.parse(readFileSync(path).toString()) as NoirCompiledContract; - content.outputs.structs.functions.reverse(); - - const testArtifact = loadContractArtifact(content); - - expect(computeArtifactHash(testArtifact).toString()).toMatchInlineSnapshot(TEST_CONTRACT_ARTIFACT_HASH); - }); });