Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix empty functionType (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmariachi authored Feb 14, 2024
1 parent 6e5ee2e commit cd10844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/node/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd10844

Please sign in to comment.