diff --git a/.vitepress/scripts/rpc-docs.ts b/.vitepress/scripts/rpc-docs.ts index 5c4b135..3026162 100644 --- a/.vitepress/scripts/rpc-docs.ts +++ b/.vitepress/scripts/rpc-docs.ts @@ -79,21 +79,16 @@ export async function generateRpcDocs() { ::: code-group \`\`\`JavaScript -const res = await fetch( - 'http://127.0.0.1:8648', - { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: { - "jsonrpc": "2.0", - "method": "{{ methodName }}", - "params": [{{ parametersValues }}], - "id": 1 - } +const res = await fetch('http://127.0.0.1:8648', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: { + "jsonrpc": "2.0", + "method": "{{ methodName }}", + "params": [{{ parametersValues }}], + "id": 1 } -); +}); const data = await res.json(); \`\`\`