Skip to content

Commit 31ffcbf

Browse files
committed
Fix lint errors
1 parent 55cd2b4 commit 31ffcbf

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

packages/snaps-simulation/src/middleware/internal-methods/switch-ethereum-chain.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type { Json, PendingJsonRpcResponse } from '@metamask/utils';
1+
import type { PendingJsonRpcResponse } from '@metamask/utils';
22

33
import { getSwitchEthereumChainHandler } from './switch-ethereum-chain';
44

55
describe('getSwitchEthereumChainHandler', () => {
66
it('returns `null`', async () => {
77
const end = jest.fn();
8-
const result: PendingJsonRpcResponse<Json> = {
8+
const result: PendingJsonRpcResponse = {
99
jsonrpc: '2.0' as const,
1010
id: 1,
1111
};

packages/snaps-simulation/src/middleware/internal-methods/switch-ethereum-chain.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import type {
22
JsonRpcEngineEndCallback,
33
JsonRpcEngineNextCallback,
44
} from '@metamask/json-rpc-engine';
5-
import type {
6-
Json,
7-
JsonRpcRequest,
8-
PendingJsonRpcResponse,
9-
} from '@metamask/utils';
5+
import type { JsonRpcRequest, PendingJsonRpcResponse } from '@metamask/utils';
106

117
/**
128
* A mock handler for the `wallet_switchEthereumChain` method that always
@@ -22,7 +18,7 @@ import type {
2218
*/
2319
export async function getSwitchEthereumChainHandler(
2420
_request: JsonRpcRequest,
25-
response: PendingJsonRpcResponse<Json>,
21+
response: PendingJsonRpcResponse,
2622
_next: JsonRpcEngineNextCallback,
2723
end: JsonRpcEngineEndCallback,
2824
) {

0 commit comments

Comments
 (0)