MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / verifyResponse

Function verifyResponse

packages/ethereum-viewer/src/explorer/fetchFiles.ts:13–16  ·  view source on GitHub ↗
(response: unknown)

Source from the content-addressed store, hash-verified

11
12const fetchEtherscanResponse = makeSolidFetch({
13 async verifyResponse(response: unknown): Promise<boolean> {
14 // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
15 return (response as any)?.message === "OK" || false;
16 },
17});
18
19interface FetchFilesOptions {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected