Skip to content

Commit

Permalink
fmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Feb 5, 2024
1 parent da634e1 commit f59e331
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion yarn-project/circuits.js/src/abis/abis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
makeEthAddress,
makePublicCallStackItem,
makeTxRequest,
makeVerificationKey
makeVerificationKey,
} from '../tests/factories.js';
import {
computeCommitmentNonce,
Expand Down
5 changes: 1 addition & 4 deletions yarn-project/circuits.js/src/abis/abis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,7 @@ export function computeFunctionTreeRoot(fnLeaves: Fr[]) {
*/
export function hashConstructor(functionData: FunctionData, argsHash: Fr, constructorVKHash: Buffer): Fr {
return Fr.fromBuffer(
pedersenHash(
[functionData.hash().toBuffer(), argsHash.toBuffer(), constructorVKHash],
GeneratorIndex.CONSTRUCTOR,
),
pedersenHash([functionData.hash().toBuffer(), argsHash.toBuffer(), constructorVKHash], GeneratorIndex.CONSTRUCTOR),
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
makeNewSideEffect,
makePreviousKernelData,
makePrivateCallData,
makePrivateCallStackItem,
makePrivateCircuitPublicInputs,
makePrivateKernelInputsInner,
makePrivateKernelPublicInputsFinal,
Expand All @@ -13,7 +12,6 @@ import {
CallRequest,
FinalAccumulatedData,
PreviousKernelData,
PrivateCallStackItem,
PrivateCircuitPublicInputs,
PrivateKernelPublicInputsFinal,
SideEffect,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import {
import { GrumpkinPrivateKey } from '../../types/grumpkin_private_key.js';
import { CallRequest } from '../call_request.js';
import { MembershipWitness } from '../membership_witness.js';
import { PrivateCallStackItem } from '../private_call_stack_item.js';
import { Proof } from '../proof.js';
import { ReadRequestMembershipWitness } from '../read_request_membership_witness.js';
import { SideEffect, SideEffectLinkedToNoteHash } from '../side_effects.js';
import { TxRequest } from '../tx_request.js';
import { VerificationKey } from '../verification_key.js';
import { PreviousKernelData } from './previous_kernel_data.js';
import { PrivateCallStackItem } from '../private_call_stack_item.js';

/**
* Private call data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
import { CallRequest } from '../call_request.js';
import { MembershipWitness } from '../membership_witness.js';
import { Proof } from '../proof.js';
import { PreviousKernelData } from './previous_kernel_data.js';
import { PublicCallStackItem } from '../public_call_stack_item.js';
import { PreviousKernelData } from './previous_kernel_data.js';

/**
* Inputs to the public kernel circuit.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ export class PublicCircuitPublicInputs {
CallContext.fromFields(reader),
reader.readField(),
reader.readFieldArray(RETURN_VALUES_LENGTH),
reader.readArray(
MAX_PUBLIC_DATA_UPDATE_REQUESTS_PER_CALL,
ContractStorageUpdateRequest,
),
reader.readArray(MAX_PUBLIC_DATA_UPDATE_REQUESTS_PER_CALL, ContractStorageUpdateRequest),
reader.readArray(MAX_PUBLIC_DATA_READS_PER_CALL, ContractStorageRead),
reader.readFieldArray(MAX_PUBLIC_CALL_STACK_LENGTH_PER_CALL),
reader.readArray(MAX_NEW_COMMITMENTS_PER_CALL, SideEffect),
Expand Down

0 comments on commit f59e331

Please sign in to comment.