Skip to content

Commit

Permalink
rest: bugfix, fix crash error when calling /deploymentinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoerg committed Jun 12, 2023
1 parent 153a688 commit ce887ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ static bool rest_deploymentinfo(const std::any& context, HTTPRequest* req, const
return RESTERR(req, HTTP_BAD_REQUEST, "Block not found");
}

jsonRequest.params.pushKV("blockhash", hash_str);
jsonRequest.params.push_back(hash_str);
}

req->WriteHeader("Content-Type", "application/json");
Expand Down

0 comments on commit ce887ea

Please sign in to comment.