Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Mar 12, 2024
1 parent a18a14a commit 8f3983c
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 14 deletions.
1 change: 1 addition & 0 deletions yarn-project/circuit-types/src/l1_to_l2_message.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { randomInt } from '@aztec/foundation/crypto';

import { L1ToL2Message, L1ToL2MessageAndIndex } from './l1_to_l2_message.js';

describe('L1 to L2 message', () => {
Expand Down
4 changes: 1 addition & 3 deletions yarn-project/circuit-types/src/logs/function_l2_logs.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { sha256 } from '@aztec/foundation/crypto';
import { randomBytes, sha256 } from '@aztec/foundation/crypto';
import { Fr, Point } from '@aztec/foundation/fields';
import { BufferReader, prefixBufferWithLength } from '@aztec/foundation/serialize';

import { randomBytes } from 'crypto';

import { LogType } from './log_type.js';
import { UnencryptedL2Log } from './unencrypted_l2_log.js';

Expand Down
1 change: 1 addition & 0 deletions yarn-project/circuit-types/src/logs/log_id.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { randomInt } from '@aztec/foundation/crypto';

import { LogId } from './log_id.js';

describe('LogId', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { toBufferBE } from '@aztec/foundation/bigint-buffer';
import { randomBytes } from '@aztec/foundation/crypto';
import { Fr } from '@aztec/foundation/fields';
import { mapTuple } from '@aztec/foundation/serialize';

import { randomBytes } from 'crypto';

import { Signature } from '../signature/index.js';

/**
Expand Down
3 changes: 1 addition & 2 deletions yarn-project/end-to-end/src/e2e_account_contracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import {
PXE,
Wallet,
} from '@aztec/aztec.js';
import { randomBytes } from '@aztec/foundation/crypto';
import { ChildContract } from '@aztec/noir-contracts.js/Child';

import { randomBytes } from 'crypto';

import { setup } from './fixtures/utils.js';

function itShouldBehaveLikeAnAccountContract(
Expand Down
3 changes: 2 additions & 1 deletion yarn-project/kv-store/src/lmdb/counter.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { randomBytes } from 'crypto';
import { randomBytes } from '@aztec/foundation/crypto';

import { Database, open } from 'lmdb';

import { LmdbAztecCounter } from './counter.js';
Expand Down
4 changes: 1 addition & 3 deletions yarn-project/merkle-tree/src/sparse_tree/sparse_tree.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { SiblingPath } from '@aztec/circuit-types';
import { randomBigInt } from '@aztec/foundation/crypto';
import { randomBigInt, randomBytes } from '@aztec/foundation/crypto';
import { createDebugLogger } from '@aztec/foundation/log';
import { AztecKVStore } from '@aztec/kv-store';
import { openTmpStore } from '@aztec/kv-store/utils';
import { Hasher } from '@aztec/types/interfaces';

import { randomBytes } from 'crypto';

import { INITIAL_LEAF, newTree } from '../index.js';
import { UpdateOnlyTree } from '../interfaces/update_only_tree.js';
import { loadTree } from '../load_tree.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { SiblingPath } from '@aztec/circuit-types';
import { randomBytes } from '@aztec/foundation/crypto';
import { AztecKVStore } from '@aztec/kv-store';
import { openTmpStore } from '@aztec/kv-store/utils';
import { Hasher } from '@aztec/types/interfaces';

import { randomBytes } from 'crypto';

import { INITIAL_LEAF, Pedersen } from '../index.js';
import { AppendOnlyTree } from '../interfaces/append_only_tree.js';
import { UpdateOnlyTree } from '../interfaces/update_only_tree.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/pxe/src/pxe_service/create_pxe_service.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { AztecNode } from '@aztec/circuit-types';
import { Grumpkin } from '@aztec/circuits.js/barretenberg';
import { randomBytes } from '@aztec/foundation/crypto';
import { TestKeyStore } from '@aztec/key-store';
import { AztecLmdbStore } from '@aztec/kv-store/lmdb';
import { initStoreForRollup } from '@aztec/kv-store/utils';
import { getCanonicalClassRegisterer } from '@aztec/protocol-contracts/class-registerer';
import { getCanonicalGasToken } from '@aztec/protocol-contracts/gas-token';
import { getCanonicalInstanceDeployer } from '@aztec/protocol-contracts/instance-deployer';

import { randomBytes } from 'crypto';
import { join } from 'path';

import { PXEServiceConfig } from '../config/index.js';
Expand Down

0 comments on commit 8f3983c

Please sign in to comment.