Skip to content

Commit

Permalink
remove typing
Browse files Browse the repository at this point in the history
  • Loading branch information
shazarre committed Oct 17, 2024
1 parent 178d6b4 commit 4e24087
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/cli/src/viem.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { Command } from '@oclif/core'
import { createPublicClient, http, HttpTransport, PublicClient } from 'viem'
import { createPublicClient, http } from 'viem'
import { celo } from 'viem/chains'

export abstract class ViemCommand extends Command {
private publicClient?: PublicClient<HttpTransport, typeof celo>
// @ts-ignore debug
private publicClient

protected async getPublicClient(): Promise<PublicClient<HttpTransport, typeof celo>> {
protected async getPublicClient() {
if (!this.publicClient) {
// Create an intermediate client to get the chain id
this.publicClient = createPublicClient({
transport: http(),
chain: celo,
}) as PublicClient<HttpTransport, typeof celo>
})
}

return this.publicClient
Expand Down

0 comments on commit 4e24087

Please sign in to comment.