MCPcopy Create free account
hub / github.com/MiloOweno/vector-mesh / parse

Function parse

packages/cli/src/plugins/fetch.test.ts:28–34  ·  view source on GitHub ↗
({ response })

Source from the content-addressed store, hash-verified

26 }
27}
28const parse: Fetch['parse'] = async ({ response }) => {
29 const data = (await response.json()) as
30 | { status: '1'; message: 'OK'; result: string }
31 | { status: '0'; message: 'NOTOK'; result: string }
32 if (data.status === '0') throw new Error(data.result)
33 return JSON.parse(data.result)
34}
35
36test('fetches ABI', async () => {
37 await expect(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected