Skip to content

Commit

Permalink
PackedValues cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Apr 25, 2024
1 parent 78b59cb commit aef5b93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 0 additions & 9 deletions yarn-project/circuit-types/src/packed_values.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Fr, Vector } from '@aztec/circuits.js';
import { computeVarArgsHash } from '@aztec/circuits.js/hash';
import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
import { type FieldsOf } from '@aztec/foundation/types';

/**
* Packs a set of values into a hash.
Expand All @@ -18,14 +17,6 @@ export class PackedValues {
public readonly hash: Fr,
) {}

static getFields(fields: FieldsOf<PackedValues>) {
return [fields.values, fields.hash] as const;
}

static from(fields: FieldsOf<PackedValues>): PackedValues {
return new PackedValues(...PackedValues.getFields(fields));
}

static fromValues(values: Fr[]) {
return new PackedValues(values, computeVarArgsHash(values));
}
Expand Down
9 changes: 8 additions & 1 deletion yarn-project/end-to-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@
"@swc/jest"
]
},
"reporters": [["default", {"summaryThreshold": 9999}]],
"reporters": [
[
"default",
{
"summaryThreshold": 9999
}
]
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.[cm]?js$": "$1"
},
Expand Down

0 comments on commit aef5b93

Please sign in to comment.