Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Aug 14, 2023
1 parent 70ed756 commit 4c7ad12
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/components/safe-apps/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ const FEATURES = [
'speaker-selection',
]

export type AllowedFeatures = typeof FEATURES[number]
type FeaturesType = typeof FEATURES

export type AllowedFeatures = FeaturesType[number]

export const isBrowserFeature = (featureKey: string): featureKey is AllowedFeatures => {
return FEATURES.includes(featureKey as AllowedFeatures)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const ReviewSignMessageOnChain = ({ message, method, requestId }: SignMessageOnC
// the primary type. And there must only be one type that is not used by any other type.
delete typesCopy.EIP712Domain
txData = readOnlySignMessageLibContract.encode('signMessage', [
// @ts-expect-error ethers type is complaining about missing BigNumber's methods. But we're not getting a BigNumber instance from a JSON
// @ts-ignore
_TypedDataEncoder.hash(message.domain, typesCopy, message.message),
])
}
Expand Down
6 changes: 3 additions & 3 deletions src/services/pairing/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ const pairingModule = (): WalletInit => {
public chains: Chain[]
public disconnect: EIP1193Provider['disconnect']
// @ts-expect-error - 'emit' does not exist on `typeof EventEmitter`
public emit: typeof EventEmitter['emit']
public emit: EventEmitter['emit']
// @ts-expect-error - 'on' does not exist on `typeof EventEmitter`
public on: typeof EventEmitter['on']
public on: EventEmitter['on']
// @ts-expect-error - 'removeListener' does not exist on `typeof EventEmitter`
public removeListener: typeof EventEmitter['removeListener']
public removeListener: EventEmitter['removeListener']

private disconnected$: InstanceType<typeof Subject>
private providers: Record<string, InstanceType<typeof StaticJsonRpcProvider>>
Expand Down

0 comments on commit 4c7ad12

Please sign in to comment.