Skip to content

Commit 9b7463f

Browse files
committed
chore: lint:fix
1 parent f2c9ab1 commit 9b7463f

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

app/core/RPCMethods/eth_sendTransaction.test.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ jest.mock('../../util/transaction-controller', () => ({
4444
* @param params - The request parameters.
4545
* @returns The JSON-RPC request.
4646
*/
47-
function constructSendTransactionRequest(
48-
params: Json[],
49-
): JsonRpcRequest<[Transaction & JsonRpcParams]> & { method: 'eth_sendTransaction' } {
47+
function constructSendTransactionRequest(params: Json[]): JsonRpcRequest<
48+
[Transaction & JsonRpcParams]
49+
> & {
50+
method: 'eth_sendTransaction';
51+
} {
5052
return {
5153
jsonrpc: '2.0',
5254
id: 1,
@@ -173,7 +175,9 @@ describe('eth_sendTransaction', () => {
173175
async () =>
174176
await eth_sendTransaction({
175177
hostname: 'example.metamask.io',
176-
req: constructSendTransactionRequest(invalidParameter as unknown as Json[]),
178+
req: constructSendTransactionRequest(
179+
invalidParameter as unknown as Json[],
180+
),
177181
res: constructPendingJsonRpcResponse(),
178182
sendTransaction: getMockAddTransaction({
179183
returnValue: 'fake-hash',
@@ -195,7 +199,9 @@ describe('eth_sendTransaction', () => {
195199
async () =>
196200
await eth_sendTransaction({
197201
hostname: 'example.metamask.io',
198-
req: constructSendTransactionRequest(invalidParameter as unknown as Json[]),
202+
req: constructSendTransactionRequest(
203+
invalidParameter as unknown as Json[],
204+
),
199205
res: constructPendingJsonRpcResponse(),
200206
sendTransaction: getMockAddTransaction({
201207
returnValue: 'fake-hash',

app/core/RPCMethods/wallet_watchAsset.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ import {
1111
} from '../../constants/error';
1212
import { selectChainId } from '../../selectors/networkController';
1313
import { isValidAddress } from 'ethereumjs-util';
14-
import {
15-
JsonRpcRequest,
16-
PendingJsonRpcResponse,
17-
} from '@metamask/utils';
14+
import { JsonRpcRequest, PendingJsonRpcResponse } from '@metamask/utils';
1815

1916
const wallet_watchAsset = async ({
2017
req,

app/core/WalletConnect/WalletConnectV2.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import Logger from '../../util/Logger';
1010
import { WalletDevice } from '@metamask/transaction-controller';
1111

1212
import { PermissionController } from '@metamask/permission-controller';
13-
import { isStrictHexString } from '@metamask/utils';
14-
import type { Hex } from '@metamask/utils';
13+
import { isStrictHexString, type Hex } from '@metamask/utils';
1514
import { NavigationContainerRef } from '@react-navigation/native';
1615
import { Core } from '@walletconnect/core';
1716
import { ErrorResponse } from '@walletconnect/jsonrpc-types';

0 commit comments

Comments
 (0)