File tree Expand file tree Collapse file tree
yarn-project/circuits.js/src/contract Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { getBenchmarkContractArtifact } from '../tests/fixtures.js' ;
1+ import { type ContractArtifact } from '@aztec/foundation/abi' ;
2+
23import { computeArtifactHash } from './artifact_hash.js' ;
34
45describe ( '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} ) ;
You can’t perform that action at this time.
0 commit comments