Skip to content

Commit

Permalink
remove everything apart from client init
Browse files Browse the repository at this point in the history
  • Loading branch information
shazarre committed Oct 17, 2024
1 parent 754c5ce commit cce20aa
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/cli/src/viem.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { Command } from '@oclif/core'
import { createPublicClient, extractChain, http, HttpTransport, PublicClient } from 'viem'
import { celo, celoAlfajores } from 'viem/chains'
import { getNodeUrl } from './utils/config'

export abstract class ViemCommand extends Command {
protected requireSynced = true

private publicClient?: PublicClient<HttpTransport, typeof celo>

protected async getPublicClient(): Promise<PublicClient<HttpTransport, typeof celo>> {
Expand All @@ -29,14 +26,4 @@ export abstract class ViemCommand extends Command {

return this.publicClient
}

protected async checkIfSynced(): Promise<boolean> {
return true
}

protected async getNodeUrl(): Promise<string> {
const res = await this.parse()

return (res.flags && res.flags.node) || getNodeUrl(this.config.configDir)
}
}

0 comments on commit cce20aa

Please sign in to comment.