diff --git a/src/components/safe-apps/types.ts b/src/components/safe-apps/types.ts index deffda73aa..27e4fd120a 100644 --- a/src/components/safe-apps/types.ts +++ b/src/components/safe-apps/types.ts @@ -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) diff --git a/src/components/tx-flow/flows/SignMessageOnChain/ReviewSignMessageOnChain.tsx b/src/components/tx-flow/flows/SignMessageOnChain/ReviewSignMessageOnChain.tsx index 6243d6e08a..181d26ee9c 100644 --- a/src/components/tx-flow/flows/SignMessageOnChain/ReviewSignMessageOnChain.tsx +++ b/src/components/tx-flow/flows/SignMessageOnChain/ReviewSignMessageOnChain.tsx @@ -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), ]) } diff --git a/src/services/pairing/module.ts b/src/services/pairing/module.ts index d4187c8644..3e18499097 100644 --- a/src/services/pairing/module.ts +++ b/src/services/pairing/module.ts @@ -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 private providers: Record>