Skip to content

Commit

Permalink
fix: remove inquirer types from formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Jan 13, 2024
1 parent 8111d11 commit 410b97d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/commands/dev/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export const handler = async () => {
} catch (error) {
Logger.error("There was an error while starting the testing environment:");
Logger.error(error);
throw error;
}
};

Expand Down
3 changes: 1 addition & 2 deletions src/utils/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { hasColor } from "./helpers.js";
import { ETH_TOKEN } from "../utils/constants.js";

import type { BigNumberish } from "ethers/lib/ethers.js";
import type { DistinctChoice } from "inquirer";

export function decimalToBigNumber(amount: string, decimals = ETH_TOKEN.decimals) {
return parseUnits(amount, decimals);
Expand Down Expand Up @@ -52,7 +51,7 @@ export const formatLogs = (logs: LogEntry[], indentation = "", defaultColor = ch
return logs.map((entry) => formatLogEntry(entry, indentation, defaultColor)).join("\n");
};

export const formatSeparator = (text: string): DistinctChoice => {
export const formatSeparator = (text: string) => {
const totalLength = 50; // Total length of the line including the text

if (!text) {
Expand Down

0 comments on commit 410b97d

Please sign in to comment.