From 4a42868743daaeb13ca9f0abe3f759f72c951490 Mon Sep 17 00:00:00 2001 From: inciner8r Date: Thu, 21 Sep 2023 12:09:21 +0530 Subject: [PATCH] api: add merge-entities flag in graph add --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 6d2516e..6080a3b 100644 --- a/main.go +++ b/main.go @@ -146,7 +146,7 @@ func DeploySubgraph(c *gin.Context) { } os.Chdir(req.Folder) for i := 1; i < len(req.Contracts); i++ { - cmd := exec.Command("graph", "add", req.Contracts[i].Address, "--contract-name", req.Contracts[i].Name, "--start-block", strconv.Itoa(req.Contracts[i].BlockNumber)) + cmd := exec.Command("graph", "add", req.Contracts[i].Address, "--contract-name", req.Contracts[i].Name, "--start-block", strconv.Itoa(req.Contracts[i].BlockNumber), "--merge-entities") err := cmd.Start() if err != nil { c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})