File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
packages/snaps-simulation/src/middleware/internal-methods Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1- import type { Json , PendingJsonRpcResponse } from '@metamask/utils' ;
1+ import type { PendingJsonRpcResponse } from '@metamask/utils' ;
22
33import { getSwitchEthereumChainHandler } from './switch-ethereum-chain' ;
44
55describe ( '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 } ;
Original file line number Diff line number Diff 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 */
2319export async function getSwitchEthereumChainHandler (
2420 _request : JsonRpcRequest ,
25- response : PendingJsonRpcResponse < Json > ,
21+ response : PendingJsonRpcResponse ,
2622 _next : JsonRpcEngineNextCallback ,
2723 end : JsonRpcEngineEndCallback ,
2824) {
You can’t perform that action at this time.
0 commit comments