Skip to content

Commit 07df45a

Browse files
author
Alex Gherghisan
committed
fix: use empty artifact in test
1 parent ff28080 commit 07df45a

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
import { getBenchmarkContractArtifact } from '../tests/fixtures.js';
1+
import { type ContractArtifact } from '@aztec/foundation/abi';
2+
23
import { computeArtifactHash } from './artifact_hash.js';
34

45
describe('ArtifactHash', () => {
56
it('calculates the artifact hash', () => {
6-
const artifact = getBenchmarkContractArtifact();
7-
expect(computeArtifactHash(artifact).toString()).toMatchInlineSnapshot(
8-
`"0x077417e7303df9113d0d0947b9dc8a06903cd8aa963a31891e2f28ce121d753e"`,
7+
const emptyArtifact: ContractArtifact = {
8+
fileMap: [],
9+
functions: [],
10+
name: 'Test',
11+
outputs: {
12+
globals: {},
13+
structs: {},
14+
},
15+
};
16+
expect(computeArtifactHash(emptyArtifact).toString()).toMatchInlineSnapshot(
17+
`"0x0dea64e7fa0688017f77bcb7075485485afb4a5f1f8508483398869439f82fdf"`,
918
);
1019
});
1120
});

0 commit comments

Comments
 (0)