Skip to content

Commit ce887ea

Browse files
committed
rest: bugfix, fix crash error when calling /deploymentinfo
1 parent 153a688 commit ce887ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ static bool rest_deploymentinfo(const std::any& context, HTTPRequest* req, const
627627
return RESTERR(req, HTTP_BAD_REQUEST, "Block not found");
628628
}
629629

630-
jsonRequest.params.pushKV("blockhash", hash_str);
630+
jsonRequest.params.push_back(hash_str);
631631
}
632632

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

0 commit comments

Comments
 (0)