Skip to content

Commit

Permalink
naming consistency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 31, 2023
1 parent 0122f6e commit 558b440
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions yarn-project/end-to-end/src/fixtures/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
} from '@aztec/l1-artifacts';
import { PXEService, createPXEService, getPXEServiceConfig } from '@aztec/pxe';
import { SequencerClient } from '@aztec/sequencer-client';
import { AztecNode, L2BlockL2Logs, LogType, PXE, createAztecNodeRpcClient } from '@aztec/types';
import { AztecNode, L2BlockL2Logs, LogType, PXE, createAztecNodeClient } from '@aztec/types';

import * as path from 'path';
import {
Expand Down Expand Up @@ -166,7 +166,7 @@ async function setupWithSandbox(account: Account, config: AztecNodeConfig, logge
// we are setting up against the sandbox, l1 contracts are already deployed
const aztecNodeUrl = getAztecNodeUrl();
logger(`Creating Aztec Node client to remote host ${aztecNodeUrl}`);
const aztecNode = createAztecNodeRpcClient(aztecNodeUrl);
const aztecNode = createAztecNodeClient(aztecNodeUrl);
logger(`Creating PXE client to remote host ${PXE_URL}`);
const pxeClient = createPXEClient(PXE_URL);
await waitForPXE(pxeClient, logger);
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/pxe/src/bin/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env -S node --no-warnings
import { createDebugLogger } from '@aztec/foundation/log';
import { createAztecNodeRpcClient } from '@aztec/types';
import { createAztecNodeClient } from '@aztec/types';

import { getPXEServiceConfig } from '../config/index.js';
import { startPXEHttpServer } from '../pxe_http/index.js';
Expand All @@ -17,7 +17,7 @@ async function main() {
logger.info(`Setting up PXE...`);

const pxeConfig = getPXEServiceConfig();
const nodeRpcClient = createAztecNodeRpcClient(AZTEC_NODE_URL);
const nodeRpcClient = createAztecNodeClient(AZTEC_NODE_URL);
const pxeService = await createPXEService(nodeRpcClient, pxeConfig);

const shutdown = async () => {
Expand Down
13 changes: 6 additions & 7 deletions yarn-project/types/src/aztec_node/rpc/http_rpc_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ import {
} from '@aztec/types';

/**
* Creates a JSON-RPC client to remotely talk to an AztecNode.
* @param url - The URL of the AztecNode
* @param fetch - The fetch implementation to use
* @returns A JSON-RPC client
* Creates a JSON-RPC client to remotely talk to an Aztec Node.
* @param url - The URL of the Aztec Node.
* @param fetch - The fetch implementation to use.
* @returns A JSON-RPC client of Aztec Node.
*/
export function createAztecNodeRpcClient(url: string, fetch = defaultFetch): AztecNode {
const rpcClient = createJsonRpcClient<AztecNode>(
export function createAztecNodeClient(url: string, fetch = defaultFetch): AztecNode {
return createJsonRpcClient<AztecNode>(
url,
{
AztecAddress,
Expand All @@ -47,5 +47,4 @@ export function createAztecNodeRpcClient(url: string, fetch = defaultFetch): Azt
false,
fetch,
);
return rpcClient;
}

0 comments on commit 558b440

Please sign in to comment.