diff --git a/app/core/RPCMethods/eth_sendTransaction.test.ts b/app/core/RPCMethods/eth_sendTransaction.test.ts index c5da3c21a66..1d5945a640e 100644 --- a/app/core/RPCMethods/eth_sendTransaction.test.ts +++ b/app/core/RPCMethods/eth_sendTransaction.test.ts @@ -44,9 +44,11 @@ jest.mock('../../util/transaction-controller', () => ({ * @param params - The request parameters. * @returns The JSON-RPC request. */ -function constructSendTransactionRequest( - params: Json[], -): JsonRpcRequest<[Transaction & JsonRpcParams]> & { method: 'eth_sendTransaction' } { +function constructSendTransactionRequest(params: Json[]): JsonRpcRequest< + [Transaction & JsonRpcParams] +> & { + method: 'eth_sendTransaction'; +} { return { jsonrpc: '2.0', id: 1, @@ -173,7 +175,9 @@ describe('eth_sendTransaction', () => { async () => await eth_sendTransaction({ hostname: 'example.metamask.io', - req: constructSendTransactionRequest(invalidParameter as unknown as Json[]), + req: constructSendTransactionRequest( + invalidParameter as unknown as Json[], + ), res: constructPendingJsonRpcResponse(), sendTransaction: getMockAddTransaction({ returnValue: 'fake-hash', @@ -195,7 +199,9 @@ describe('eth_sendTransaction', () => { async () => await eth_sendTransaction({ hostname: 'example.metamask.io', - req: constructSendTransactionRequest(invalidParameter as unknown as Json[]), + req: constructSendTransactionRequest( + invalidParameter as unknown as Json[], + ), res: constructPendingJsonRpcResponse(), sendTransaction: getMockAddTransaction({ returnValue: 'fake-hash', diff --git a/app/core/RPCMethods/wallet_watchAsset.ts b/app/core/RPCMethods/wallet_watchAsset.ts index c78d2189059..b6988fb2378 100644 --- a/app/core/RPCMethods/wallet_watchAsset.ts +++ b/app/core/RPCMethods/wallet_watchAsset.ts @@ -11,10 +11,7 @@ import { } from '../../constants/error'; import { selectChainId } from '../../selectors/networkController'; import { isValidAddress } from 'ethereumjs-util'; -import { - JsonRpcRequest, - PendingJsonRpcResponse, -} from '@metamask/utils'; +import { JsonRpcRequest, PendingJsonRpcResponse } from '@metamask/utils'; const wallet_watchAsset = async ({ req, diff --git a/app/core/WalletConnect/WalletConnectV2.ts b/app/core/WalletConnect/WalletConnectV2.ts index 80498b48e28..ecdd096e974 100644 --- a/app/core/WalletConnect/WalletConnectV2.ts +++ b/app/core/WalletConnect/WalletConnectV2.ts @@ -10,8 +10,7 @@ import Logger from '../../util/Logger'; import { WalletDevice } from '@metamask/transaction-controller'; import { PermissionController } from '@metamask/permission-controller'; -import { isStrictHexString } from '@metamask/utils'; -import type { Hex } from '@metamask/utils'; +import { isStrictHexString, type Hex } from '@metamask/utils'; import { NavigationContainerRef } from '@react-navigation/native'; import { Core } from '@walletconnect/core'; import { ErrorResponse } from '@walletconnect/jsonrpc-types';