Skip to content

Commit

Permalink
feat(docs): added dependency to useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
aednikanov committed Sep 18, 2024
1 parent 43cdfa5 commit 1f74dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ParserOpenRPC/RequestBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function RequestBox({
return `await window.ethereum.request({\n "method": "${method}",\n "params": ${preparedParams.replace(/"([^"]+)":/g, '$1:')},\n});`;
}
return `curl ${NETWORK_URL}/v3/${isLineaReferencePage ? customAPIKey : API_KEY} \\\n -X POST \\\n -H "Content-Type: application/json" \\\n -d '{\n "jsonrpc": "2.0",\n "method": "${method}",\n "params": ${preparedShellParams},\n "id": 1\n }'`;
}, [method, paramsData]);
}, [customAPIKey, method, paramsData]);

const exampleResponse = useMemo(() => {
return JSON.stringify(response, null, 2);
Expand Down

0 comments on commit 1f74dd0

Please sign in to comment.