Skip to content

Commit ce24548

Browse files
committed
Dont allow adding new contracts when subgraph is a composed subgraph
1 parent a074696 commit ce24548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/commands/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ async function initSubgraphFromContract(
12961296
this.exit(1);
12971297
}
12981298

1299-
while (addContract) {
1299+
while (addContract && !isComposedSubgraph) {
13001300
addContract = await addAnotherContract
13011301
.bind(this)({
13021302
protocolInstance,

0 commit comments

Comments
 (0)