Skip to content

Commit

Permalink
Make config readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Oct 14, 2024
1 parent c5a5c9e commit 3de2051
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/createConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { CamelCasedProperties } from "./cli/parseArgs"
import type { Logger } from "pino"
import type { Chain, PublicClient, Transport, WalletClient } from "viem"

export type AltoConfig = CamelCasedProperties<IOptions> & {
logger: Logger
publicClient: PublicClient<Transport, Chain>
walletClient: WalletClient<Transport, Chain>
export type AltoConfig = Readonly<CamelCasedProperties<IOptions>> & {
readonly logger: Logger
readonly publicClient: PublicClient<Transport, Chain>
readonly walletClient: WalletClient<Transport, Chain>
}

export function createConfig(
Expand Down

0 comments on commit 3de2051

Please sign in to comment.