Skip to content

Commit 7441767

Browse files
authored
chore: Rename logger modules (#10404)
Renames logger module names. Removes the `aztec:` prefix from all of them, and ensures that every logger module name is prefixed with the package name. Also renames `DebugLogger` to just `Logger`. Note that #10125 suggests using eslint to enforce this. Writing a custom eslint rule requires either creating a whole new package, or upgrading to eslint 9 which uses a new config format. Both of these options seemed overkill for just enforcing this convention. Includes sequencer cleanup from #10404 Fixes #10125
1 parent fbc8c0e commit 7441767

File tree

278 files changed

+821
-786
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+821
-786
lines changed

boxes/boxes/react/tests/node.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { AccountWallet, CompleteAddress, Contract, Fr, createDebugLogger } from '@aztec/aztec.js';
1+
import { AccountWallet, CompleteAddress, Contract, Fr, createLogger } from '@aztec/aztec.js';
22
import { BoxReactContract } from '../artifacts/BoxReact.js';
33
import { deployerEnv } from '../src/config.js';
44

5-
const logger = createDebugLogger('aztec:http-pxe-client');
5+
const logger = createLogger('aztec:http-pxe-client');
66

77
describe('BoxReact Contract Tests', () => {
88
let wallet: AccountWallet;

docs/docs/tutorials/codealong/contract_tutorials/token_bridge/4_typescript_glue_code.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Open `cross_chain_messaging.test.ts` and paste the initial description of the te
3838

3939
```typescript
4040
import { beforeAll, describe, beforeEach, expect, jest, it} from '@jest/globals'
41-
import { AccountWallet, AztecAddress, BatchCall, type DebugLogger, EthAddress, Fr, computeAuthWitMessageHash, createDebugLogger, createPXEClient, waitForPXE, L1ToL2Message, L1Actor, L2Actor, type PXE, type Wallet } from '@aztec/aztec.js';
41+
import { AccountWallet, AztecAddress, BatchCall, type DebugLogger, EthAddress, Fr, computeAuthWitMessageHash, createLogger, createPXEClient, waitForPXE, L1ToL2Message, L1Actor, L2Actor, type PXE, type Wallet } from '@aztec/aztec.js';
4242
import { getInitialTestAccountsWallets } from '@aztec/accounts/testing';
4343
import { TokenContract } from '@aztec/noir-contracts.js/Token';
4444
import { sha256ToField } from '@aztec/foundation/crypto';
@@ -92,7 +92,7 @@ describe('e2e_cross_chain_messaging', () => {
9292
let outbox: any;
9393

9494
beforeAll(async () => {
95-
logger = createDebugLogger('aztec:e2e_uniswap');
95+
logger = createLogger('aztec:e2e_uniswap');
9696
const pxe = createPXEClient(PXE_URL);
9797
await waitForPXE(pxe);
9898
wallets = await getInitialTestAccountsWallets(pxe);
@@ -102,7 +102,7 @@ describe('e2e_cross_chain_messaging', () => {
102102
})
103103

104104
beforeEach(async () => {
105-
logger = createDebugLogger('aztec:e2e_uniswap');
105+
logger = createLogger('aztec:e2e_uniswap');
106106
const pxe = createPXEClient(PXE_URL);
107107
await waitForPXE(pxe);
108108

yarn-project/archiver/src/archiver/archiver.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import { type ContractArtifact } from '@aztec/foundation/abi';
4040
import { type AztecAddress } from '@aztec/foundation/aztec-address';
4141
import { type EthAddress } from '@aztec/foundation/eth-address';
4242
import { Fr } from '@aztec/foundation/fields';
43-
import { type DebugLogger, createDebugLogger } from '@aztec/foundation/log';
43+
import { type Logger, createLogger } from '@aztec/foundation/log';
4444
import { RunningPromise } from '@aztec/foundation/running-promise';
4545
import { count } from '@aztec/foundation/string';
4646
import { elapsed } from '@aztec/foundation/timer';
@@ -116,7 +116,7 @@ export class Archiver implements ArchiveSource {
116116
private readonly config: { pollingIntervalMs: number; batchSize: number },
117117
private readonly instrumentation: ArchiverInstrumentation,
118118
private readonly l1constants: L1RollupConstants,
119-
private readonly log: DebugLogger = createDebugLogger('aztec:archiver'),
119+
private readonly log: Logger = createLogger('archiver'),
120120
) {
121121
this.store = new ArchiverStoreHelper(dataStore);
122122

@@ -836,7 +836,7 @@ class ArchiverStoreHelper
836836
| 'addFunctions'
837837
>
838838
{
839-
#log = createDebugLogger('aztec:archiver:block-helper');
839+
#log = createLogger('archiver:block-helper');
840840

841841
constructor(private readonly store: ArchiverDataStore) {}
842842

yarn-project/archiver/src/archiver/data_retrieval.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { AppendOnlyTreeSnapshot, BlockHeader, Fr, Proof } from '@aztec/circuits.
33
import { asyncPool } from '@aztec/foundation/async-pool';
44
import { type EthAddress } from '@aztec/foundation/eth-address';
55
import { type ViemSignature } from '@aztec/foundation/eth-signature';
6-
import { type DebugLogger, createDebugLogger } from '@aztec/foundation/log';
6+
import { type Logger, createLogger } from '@aztec/foundation/log';
77
import { numToUInt32BE } from '@aztec/foundation/serialize';
88
import { type InboxAbi, RollupAbi } from '@aztec/l1-artifacts';
99

@@ -36,7 +36,7 @@ export async function retrieveBlocksFromRollup(
3636
publicClient: PublicClient,
3737
searchStartBlock: bigint,
3838
searchEndBlock: bigint,
39-
logger: DebugLogger = createDebugLogger('aztec:archiver'),
39+
logger: Logger = createLogger('archiver'),
4040
): Promise<L1Published<L2Block>[]> {
4141
const retrievedBlocks: L1Published<L2Block>[] = [];
4242
do {
@@ -78,7 +78,7 @@ export async function processL2BlockProposedLogs(
7878
rollup: GetContractReturnType<typeof RollupAbi, PublicClient<HttpTransport, Chain>>,
7979
publicClient: PublicClient,
8080
logs: GetContractEventsReturnType<typeof RollupAbi, 'L2BlockProposed'>,
81-
logger: DebugLogger,
81+
logger: Logger,
8282
): Promise<L1Published<L2Block>[]> {
8383
const retrievedBlocks: L1Published<L2Block>[] = [];
8484
await asyncPool(10, logs, async log => {

yarn-project/archiver/src/archiver/instrumentation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type L2Block } from '@aztec/circuit-types';
2-
import { createDebugLogger } from '@aztec/foundation/log';
2+
import { createLogger } from '@aztec/foundation/log';
33
import {
44
Attributes,
55
type Gauge,
@@ -22,7 +22,7 @@ export class ArchiverInstrumentation {
2222
private proofsSubmittedCount: UpDownCounter;
2323
private dbMetrics: LmdbMetrics;
2424

25-
private log = createDebugLogger('aztec:archiver:instrumentation');
25+
private log = createLogger('archiver:instrumentation');
2626

2727
constructor(private telemetry: TelemetryClient, lmdbStats?: LmdbStatsCallback) {
2828
const meter = telemetry.getMeter('Archiver');

yarn-project/archiver/src/archiver/kv_archiver_store/block_store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Body, type InBlock, L2Block, L2BlockHash, type TxEffect, type TxHash, TxReceipt } from '@aztec/circuit-types';
22
import { AppendOnlyTreeSnapshot, type AztecAddress, BlockHeader, INITIAL_L2_BLOCK_NUM } from '@aztec/circuits.js';
3-
import { createDebugLogger } from '@aztec/foundation/log';
3+
import { createLogger } from '@aztec/foundation/log';
44
import { type AztecKVStore, type AztecMap, type AztecSingleton, type Range } from '@aztec/kv-store';
55

66
import { type L1Published, type L1PublishedData } from '../structs/published.js';
@@ -38,7 +38,7 @@ export class BlockStore {
3838
/** Index mapping a contract's address (as a string) to its location in a block */
3939
#contractIndex: AztecMap<string, BlockIndexValue>;
4040

41-
#log = createDebugLogger('aztec:archiver:block_store');
41+
#log = createLogger('archiver:block_store');
4242

4343
constructor(private db: AztecKVStore) {
4444
this.#blocks = db.openMap('archiver_blocks');

yarn-project/archiver/src/archiver/kv_archiver_store/kv_archiver_store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
} from '@aztec/circuits.js';
2020
import { type ContractArtifact, FunctionSelector } from '@aztec/foundation/abi';
2121
import { type AztecAddress } from '@aztec/foundation/aztec-address';
22-
import { createDebugLogger } from '@aztec/foundation/log';
22+
import { createLogger } from '@aztec/foundation/log';
2323
import { type AztecKVStore } from '@aztec/kv-store';
2424

2525
import { type ArchiverDataStore, type ArchiverL1SynchPoint } from '../archiver_store.js';
@@ -46,7 +46,7 @@ export class KVArchiverDataStore implements ArchiverDataStore {
4646
#contractArtifactStore: ContractArtifactsStore;
4747
private functionNames = new Map<string, string>();
4848

49-
#log = createDebugLogger('aztec:archiver:data-store');
49+
#log = createLogger('archiver:data-store');
5050

5151
constructor(private db: AztecKVStore, logsMaxPageSize: number = 1000) {
5252
this.#blockStore = new BlockStore(db);

yarn-project/archiver/src/archiver/kv_archiver_store/log_store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from '@aztec/circuit-types';
1212
import { Fr, PrivateLog } from '@aztec/circuits.js';
1313
import { INITIAL_L2_BLOCK_NUM, MAX_NOTE_HASHES_PER_TX } from '@aztec/circuits.js/constants';
14-
import { createDebugLogger } from '@aztec/foundation/log';
14+
import { createLogger } from '@aztec/foundation/log';
1515
import { BufferReader } from '@aztec/foundation/serialize';
1616
import { type AztecKVStore, type AztecMap } from '@aztec/kv-store';
1717

@@ -27,7 +27,7 @@ export class LogStore {
2727
#unencryptedLogsByBlock: AztecMap<number, Buffer>;
2828
#contractClassLogsByBlock: AztecMap<number, Buffer>;
2929
#logsMaxPageSize: number;
30-
#log = createDebugLogger('aztec:archiver:log_store');
30+
#log = createLogger('archiver:log_store');
3131

3232
constructor(private db: AztecKVStore, private blockStore: BlockStore, logsMaxPageSize: number = 1000) {
3333
this.#logsByTag = db.openMap('archiver_tagged_logs_by_tag');

yarn-project/archiver/src/archiver/kv_archiver_store/message_store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { InboxLeaf } from '@aztec/circuit-types';
22
import { Fr, L1_TO_L2_MSG_SUBTREE_HEIGHT } from '@aztec/circuits.js';
3-
import { createDebugLogger } from '@aztec/foundation/log';
3+
import { createLogger } from '@aztec/foundation/log';
44
import { type AztecKVStore, type AztecMap, type AztecSingleton } from '@aztec/kv-store';
55

66
import { type DataRetrieval } from '../structs/data_retrieval.js';
@@ -14,7 +14,7 @@ export class MessageStore {
1414
#lastSynchedL1Block: AztecSingleton<bigint>;
1515
#totalMessageCount: AztecSingleton<bigint>;
1616

17-
#log = createDebugLogger('aztec:archiver:message_store');
17+
#log = createLogger('archiver:message_store');
1818

1919
#l1ToL2MessagesSubtreeSize = 2 ** L1_TO_L2_MSG_SUBTREE_HEIGHT;
2020

yarn-project/archiver/src/archiver/kv_archiver_store/nullifier_store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { type InBlock, type L2Block } from '@aztec/circuit-types';
22
import { type Fr, MAX_NULLIFIERS_PER_TX } from '@aztec/circuits.js';
3-
import { createDebugLogger } from '@aztec/foundation/log';
3+
import { createLogger } from '@aztec/foundation/log';
44
import { type AztecKVStore, type AztecMap } from '@aztec/kv-store';
55

66
export class NullifierStore {
77
#nullifiersToBlockNumber: AztecMap<string, number>;
88
#nullifiersToBlockHash: AztecMap<string, string>;
99
#nullifiersToIndex: AztecMap<string, number>;
10-
#log = createDebugLogger('aztec:archiver:log_store');
10+
#log = createLogger('archiver:log_store');
1111

1212
constructor(private db: AztecKVStore) {
1313
this.#nullifiersToBlockNumber = db.openMap('archiver_nullifiers_to_block_number');

yarn-project/archiver/src/archiver/memory_archiver_store/memory_archiver_store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
} from '@aztec/circuits.js';
3131
import { type ContractArtifact, FunctionSelector } from '@aztec/foundation/abi';
3232
import { type AztecAddress } from '@aztec/foundation/aztec-address';
33-
import { createDebugLogger } from '@aztec/foundation/log';
33+
import { createLogger } from '@aztec/foundation/log';
3434

3535
import { type ArchiverDataStore, type ArchiverL1SynchPoint } from '../archiver_store.js';
3636
import { type DataRetrieval } from '../structs/data_retrieval.js';
@@ -86,7 +86,7 @@ export class MemoryArchiverStore implements ArchiverDataStore {
8686
private lastProvenL2BlockNumber: number = 0;
8787
private lastProvenL2EpochNumber: number = 0;
8888

89-
#log = createDebugLogger('aztec:archiver:data-store');
89+
#log = createLogger('archiver:data-store');
9090

9191
constructor(
9292
/** The max number of logs that can be obtained in 1 "getUnencryptedLogs" call. */

yarn-project/archiver/src/factory.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
computePublicBytecodeCommitment,
55
getContractClassFromArtifact,
66
} from '@aztec/circuits.js';
7-
import { createDebugLogger } from '@aztec/foundation/log';
7+
import { createLogger } from '@aztec/foundation/log';
88
import { type Maybe } from '@aztec/foundation/types';
99
import { type DataStoreConfig } from '@aztec/kv-store/config';
1010
import { createStore } from '@aztec/kv-store/lmdb';
@@ -24,7 +24,7 @@ export async function createArchiver(
2424
opts: { blockUntilSync: boolean } = { blockUntilSync: true },
2525
): Promise<ArchiverApi & Maybe<Service>> {
2626
if (!config.archiverUrl) {
27-
const store = await createStore('archiver', config, createDebugLogger('aztec:archiver:lmdb'));
27+
const store = await createStore('archiver', config, createLogger('archiver:lmdb'));
2828
const archiverStore = new KVArchiverDataStore(store, config.maxLogs);
2929
await registerProtocolContracts(archiverStore);
3030
await registerCommonContracts(archiverStore);

yarn-project/archiver/src/index.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@ export * from './archiver/index.js';
22
export * from './factory.js';
33
export * from './rpc/index.js';
44

5-
export {
6-
retrieveBlocksFromRollup as retrieveBlockFromRollup,
7-
retrieveL2ProofVerifiedEvents,
8-
} from './archiver/data_retrieval.js';
5+
export { retrieveBlocksFromRollup, retrieveL2ProofVerifiedEvents } from './archiver/data_retrieval.js';

yarn-project/archiver/src/test/mock_l2_block_source.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import { getSlotRangeForEpoch } from '@aztec/circuit-types';
1111
import { type BlockHeader, EthAddress } from '@aztec/circuits.js';
1212
import { DefaultL1ContractsConfig } from '@aztec/ethereum';
13-
import { createDebugLogger } from '@aztec/foundation/log';
13+
import { createLogger } from '@aztec/foundation/log';
1414

1515
/**
1616
* A mocked implementation of L2BlockSource to be used in tests.
@@ -21,7 +21,7 @@ export class MockL2BlockSource implements L2BlockSource {
2121
private provenEpochNumber: number = 0;
2222
private provenBlockNumber: number = 0;
2323

24-
private log = createDebugLogger('aztec:archiver:mock_l2_block_source');
24+
private log = createLogger('archiver:mock_l2_block_source');
2525

2626
public createBlocks(numBlocks: number) {
2727
for (let i = 0; i < numBlocks; i++) {

yarn-project/aztec-faucet/src/bin/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env -S node --no-warnings
22
import { NULL_KEY, createEthereumChain } from '@aztec/ethereum';
33
import { EthAddress } from '@aztec/foundation/eth-address';
4-
import { createDebugLogger } from '@aztec/foundation/log';
4+
import { createLogger } from '@aztec/foundation/log';
55
import { TestERC20Abi } from '@aztec/l1-artifacts';
66

77
import http from 'http';
@@ -34,7 +34,7 @@ const {
3434
EXTRA_ASSET_AMOUNT = '',
3535
} = process.env;
3636

37-
const logger = createDebugLogger('aztec:faucet');
37+
const logger = createLogger('faucet');
3838

3939
const rpcUrl = RPC_URL;
4040
const l1ChainId = +L1_CHAIN_ID;

yarn-project/aztec-node/src/aztec-node/server.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import { type L1ContractAddresses, createEthereumChain } from '@aztec/ethereum';
5757
import { type ContractArtifact } from '@aztec/foundation/abi';
5858
import { AztecAddress } from '@aztec/foundation/aztec-address';
5959
import { padArrayEnd } from '@aztec/foundation/collection';
60-
import { type DebugLogger, createDebugLogger } from '@aztec/foundation/log';
60+
import { type Logger, createLogger } from '@aztec/foundation/log';
6161
import { Timer } from '@aztec/foundation/timer';
6262
import { type AztecKVStore } from '@aztec/kv-store';
6363
import { openTmpStore } from '@aztec/kv-store/lmdb';
@@ -105,7 +105,7 @@ export class AztecNodeService implements AztecNode {
105105
protected readonly globalVariableBuilder: GlobalVariableBuilder,
106106
private proofVerifier: ClientProtocolCircuitVerifier,
107107
private telemetry: TelemetryClient,
108-
private log = createDebugLogger('aztec:node'),
108+
private log = createLogger('node'),
109109
) {
110110
this.packageVersion = getPackageInfo().version;
111111
this.metrics = new NodeMetrics(telemetry, 'AztecNodeService');
@@ -140,12 +140,12 @@ export class AztecNodeService implements AztecNode {
140140
config: AztecNodeConfig,
141141
deps: {
142142
telemetry?: TelemetryClient;
143-
logger?: DebugLogger;
143+
logger?: Logger;
144144
publisher?: L1Publisher;
145145
} = {},
146146
): Promise<AztecNodeService> {
147147
const telemetry = deps.telemetry ?? new NoopTelemetryClient();
148-
const log = deps.logger ?? createDebugLogger('aztec:node');
148+
const log = deps.logger ?? createLogger('node');
149149
const ethereumChain = createEthereumChain(config.l1RpcUrl, config.l1ChainId);
150150
//validate that the actual chain id matches that specified in configuration
151151
if (config.l1ChainId !== ethereumChain.chainInfo.id) {

yarn-project/aztec-node/src/bin/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env -S node --no-warnings
2-
import { createDebugLogger } from '@aztec/foundation/log';
2+
import { createLogger } from '@aztec/foundation/log';
33

44
import http from 'http';
55

66
import { type AztecNodeConfig, AztecNodeService, createAztecNodeRpcServer, getConfigEnvVars } from '../index.js';
77

88
const { AZTEC_NODE_PORT = 8081, API_PREFIX = '' } = process.env;
99

10-
const logger = createDebugLogger('aztec:node');
10+
const logger = createLogger('node');
1111

1212
/**
1313
* Creates the node from provided config

yarn-project/aztec.js/src/contract/base_contract_interaction.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type TxExecutionRequest, type TxProvingResult } from '@aztec/circuit-types';
22
import { type Fr, GasSettings } from '@aztec/circuits.js';
3-
import { createDebugLogger } from '@aztec/foundation/log';
3+
import { createLogger } from '@aztec/foundation/log';
44

55
import { type Wallet } from '../account/wallet.js';
66
import { type ExecutionRequestInit } from '../entrypoint/entrypoint.js';
@@ -30,7 +30,7 @@ export type SendMethodOptions = {
3030
* Implements the sequence create/simulate/send.
3131
*/
3232
export abstract class BaseContractInteraction {
33-
protected log = createDebugLogger('aztec:js:contract_interaction');
33+
protected log = createLogger('aztecjs:contract_interaction');
3434

3535
constructor(protected wallet: Wallet) {}
3636

yarn-project/aztec.js/src/contract/deploy_sent_tx.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type PXE, type TxHash, type TxReceipt } from '@aztec/circuit-types';
22
import { type AztecAddress, type ContractInstanceWithAddress } from '@aztec/circuits.js';
3-
import { createDebugLogger } from '@aztec/foundation/log';
3+
import { createLogger } from '@aztec/foundation/log';
44
import { type FieldsOf } from '@aztec/foundation/types';
55

66
import { type Wallet } from '../account/index.js';
@@ -24,7 +24,7 @@ export type DeployTxReceipt<TContract extends ContractBase = Contract> = FieldsO
2424
* A contract deployment transaction sent to the network, extending SentTx with methods to create a contract instance.
2525
*/
2626
export class DeploySentTx<TContract extends Contract = Contract> extends SentTx {
27-
private log = createDebugLogger('aztec:js:deploy_sent_tx');
27+
private log = createLogger('aztecjs:deploy_sent_tx');
2828

2929
constructor(
3030
wallet: PXE | Wallet,

yarn-project/aztec.js/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export { decodeFromAbi, encodeArguments, type AbiType } from '@aztec/foundation/
159159
export { toBigIntBE } from '@aztec/foundation/bigint-buffer';
160160
export { sha256 } from '@aztec/foundation/crypto';
161161
export { makeFetch } from '@aztec/foundation/json-rpc/client';
162-
export { createDebugLogger, type DebugLogger } from '@aztec/foundation/log';
162+
export { createLogger, type Logger } from '@aztec/foundation/log';
163163
export { retry, retryUntil } from '@aztec/foundation/retry';
164164
export { to2Fields, toBigInt } from '@aztec/foundation/serialize';
165165
export { sleep } from '@aztec/foundation/sleep';

yarn-project/aztec.js/src/rpc_clients/node/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type PXE } from '@aztec/circuit-types';
22
import { jsonStringify } from '@aztec/foundation/json-rpc';
3-
import { type DebugLogger } from '@aztec/foundation/log';
3+
import { type Logger } from '@aztec/foundation/log';
44
import { NoRetryError, makeBackoff, retry } from '@aztec/foundation/retry';
55

66
import { Axios, type AxiosError } from 'axios';
@@ -51,7 +51,7 @@ async function axiosFetch(host: string, rpcMethod: string, body: any, useApiEndp
5151
* @param _logger - Debug logger to warn version incompatibilities.
5252
* @returns A PXE client.
5353
*/
54-
export function createCompatibleClient(rpcUrl: string, logger: DebugLogger): Promise<PXE> {
54+
export function createCompatibleClient(rpcUrl: string, logger: Logger): Promise<PXE> {
5555
// Use axios due to timeout issues with fetch when proving TXs.
5656
const fetch = async (host: string, rpcMethod: string, body: any, useApiEndpoints: boolean) => {
5757
return await retry(

0 commit comments

Comments
 (0)