Skip to content

Commit

Permalink
removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienR1 committed Nov 28, 2023
1 parent 7497ca3 commit 26a4860
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/fetch/cursors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,3 @@ async function verifyParameters(req: Request): Promise<Result<{ chain: string; m

return Ok({ chain, moduleHash });
}

async function getModuleHash(table: string, chain: string): Promise<string | null> {
const query = `SELECT module_hash FROM ${table} WHERE chain = '${chain}'`;
const response = await readOnlyClient.query({ query, format: "JSONEachRow" });
const data = await response.json<Array<{ module_hash: string }>>();
return data[0]?.module_hash ?? null;
}

0 comments on commit 26a4860

Please sign in to comment.