From cd10844ea6936aa943d5bd5ddf90b606605f237a Mon Sep 17 00:00:00 2001 From: xmariachi Date: Wed, 14 Feb 2024 18:06:04 +0100 Subject: [PATCH] Fix empty functionType (#60) --- cmd/node/execute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/node/execute.go b/cmd/node/execute.go index c59430d..2760206 100644 --- a/cmd/node/execute.go +++ b/cmd/node/execute.go @@ -42,10 +42,10 @@ type ExecuteResult struct { func sendResultsToChain(ctx echo.Context, a api.API, appChainClient AppChain, req ExecuteRequest, res ExecuteResponse) { // Only in weight functions that we will have a "type" in the response - functionType := "inferences" functionType, err := getResponseInfo(res.Results[0].Result.Stdout) if err != nil { a.Log.Warn().Str("function", req.FunctionID).Err(err).Msg("node failed to extract response info from stdout") + functionType = "inferences" } var topicId uint64 = 0