Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilWindle committed Sep 27, 2024
1 parent 2380ac7 commit 901c47d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions yarn-project/sequencer-client/src/publisher/l1-publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import type * as chains from 'viem/chains';

import { type PublisherConfig, type TxSenderConfig } from './config.js';
import { L1PublisherMetrics } from './l1-publisher-metrics.js';
import { prettyLogVeimError } from './utils.js';
import { prettyLogViemError } from './utils.js';

/**
* Stats for a sent transaction.
Expand Down Expand Up @@ -559,7 +559,7 @@ export class L1Publisher {
gas: gasGuesstimate,
});
} catch (err) {
prettyLogVeimError(err, this.log);
prettyLogViemError(err, this.log);
this.log.error(`Rollup publish failed`, err);
return undefined;
}
Expand All @@ -580,7 +580,7 @@ export class L1Publisher {
gas: gasGuesstimate,
});
} catch (err) {
prettyLogVeimError(err, this.log);
prettyLogViemError(err, this.log);
this.log.error(`Rollup publish failed`, err);
return undefined;
}
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/sequencer-client/src/publisher/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { type Logger } from '@aztec/foundation/log';

import { BaseError, ContractFunctionRevertedError } from 'viem';

export function prettyLogVeimError(err: any, logger: Logger) {
export function prettyLogViemError(err: any, logger: Logger) {
if (err instanceof BaseError) {
const revertError = err.walk(err => err instanceof ContractFunctionRevertedError);
if (revertError instanceof ContractFunctionRevertedError) {
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/sequencer-client/src/sequencer/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { type ValidatorClient } from '@aztec/validator-client';
import { type BlockBuilderFactory } from '../block_builder/index.js';
import { type GlobalVariableBuilder } from '../global_variable_builder/global_builder.js';
import { type L1Publisher } from '../publisher/l1-publisher.js';
import { prettyLogVeimError } from '../publisher/utils.js';
import { prettyLogViemError } from '../publisher/utils.js';
import { type TxValidatorFactory } from '../tx_validator/tx_validator_factory.js';
import { type SequencerConfig } from './config.js';
import { SequencerMetrics } from './metrics.js';
Expand Down Expand Up @@ -312,7 +312,7 @@ export class Sequencer {
this.log.debug(`Can propose block ${proposalBlockNumber} at slot ${slot}`);
return slot;
} catch (err) {
prettyLogVeimError(err, this.log);
prettyLogViemError(err, this.log);
throw err;
}
}
Expand Down

0 comments on commit 901c47d

Please sign in to comment.