Skip to content

Commit 52f8ebd

Browse files
committed
fix(cli): correct subgraph hash key and output formatting
- Updated the SUBGRAPH_HASH_KEY constant to "SUBGRAPH" for consistency. - Adjusted the output formatting in bootstrap command to ensure proper JSON structure for the subgraph hash configuration. - Enhanced the clarity of the generated output for better usability.
1 parent 03e037a commit 52f8ebd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cli/commands/bootstrap/bootstrap.output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const outputToFile = async (payload: OutputPayload): Promise<string> => {
234234
path: join(directory, `${artifactNames.subgraphConfigMapName}.json`),
235235
description: `${artifactNames.subgraphConfigMapName}.json`,
236236
contents: `${JSON.stringify(
237-
{ [SUBGRAPH_HASH_KEY]: payload.subgraphHash },
237+
{ [SUBGRAPH_HASH_KEY]: `kit:${payload.subgraphHash}` },
238238
null,
239239
2
240240
)}\n`,

src/cli/commands/bootstrap/bootstrap.subgraph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CID } from "multiformats/cid";
22

3-
const SUBGRAPH_HASH_KEY = "SUBGRAPH_HASH" as const;
3+
const SUBGRAPH_HASH_KEY = "SUBGRAPH" as const;
44

55
const loadSubgraphHash = async (path: string): Promise<string> => {
66
const trimmedPath = path.trim();

0 commit comments

Comments
 (0)