Skip to content

Commit

Permalink
fix: redundant method
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Jun 2, 2022
1 parent 81c30f1 commit 575f252
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions packages/web3-strategy/src/Web3Strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ export default class Web3Strategy {
return this.getStrategy().isWeb3Connected()
}

public isMetamaskInstalled(): boolean {
return this.getStrategy().isMetamaskInstalled()
}

public getChainId(): Promise<string> {
return this.getStrategy().getChainId()
}
Expand Down
4 changes: 1 addition & 3 deletions packages/web3-strategy/src/types/strategy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AccountAddress, ChainId } from '@injectivelabs/ts-types'
import Web3 from 'web3'
import type Web3 from 'web3'

export type onAccountChangeCallback = (account: AccountAddress) => void
export type onChainIdChangeCallback = () => void
Expand All @@ -15,8 +15,6 @@ export interface Web3Options {
}

export interface ConcreteWeb3Strategy {
isMetamaskInstalled(): boolean

getAddresses(): Promise<string[]>

confirm(address: AccountAddress): Promise<string>
Expand Down

0 comments on commit 575f252

Please sign in to comment.