Skip to content

Commit c47c360

Browse files
committed
Fix lint issue
1 parent 54f5ba3 commit c47c360

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/portal-client/src/hooks/useJsonRpc.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { useCallback, useState } from 'react'
21
import { usePortalNetwork } from '@/contexts/PortalNetworkContext'
2+
import type { RPCResponse } from '@/utils/types'
33
import { decodeExtensionPayloadToJson, formatBlockResponse } from 'portalnetwork'
4-
import { RPCResponse } from '@/utils/types'
4+
import { useCallback, useState } from 'react'
55

66
export const useJsonRpc = () => {
77
const { client, historyNetwork, setIsLoading } = usePortalNetwork()
@@ -49,7 +49,7 @@ export const useJsonRpc = () => {
4949
result = await client.ETH.getBalance(params[0], params[1])
5050
responseType = 'ether'
5151
break
52-
case 'portal_historyPing':
52+
case 'portal_historyPing': {
5353
const res = await historyNetwork?.sendPing(params[0])
5454
if (!res) {
5555
throw new Error('Pong not received')
@@ -62,6 +62,7 @@ export const useJsonRpc = () => {
6262

6363
responseType = 'generic'
6464
break
65+
}
6566
case 'portal_historyFindContent':
6667
result = await historyNetwork?.sendFindNodes(params[0], params[1])
6768
responseType = 'generic'

0 commit comments

Comments
 (0)