From fa9af218780b7960d756db80c57222e5bf2137b1 Mon Sep 17 00:00:00 2001 From: MacroFake Date: Fri, 13 May 2022 12:32:59 +0200 Subject: scripted-diff: Use getInt over get_int/get_int64 -BEGIN VERIFY SCRIPT- sed -i 's|\|getInt|g' $(git grep -l get_int ':(exclude)src/univalue') sed -i 's|\|getInt|g' $(git grep -l get_int ':(exclude)src/univalue') -END VERIFY SCRIPT- --- src/httprpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/httprpc.cpp') diff --git a/src/httprpc.cpp b/src/httprpc.cpp index 3bf165495c..4e7e72b037 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -75,7 +75,7 @@ static void JSONErrorReply(HTTPRequest* req, const UniValue& objError, const Uni { // Send error reply from json-rpc error object int nStatus = HTTP_INTERNAL_SERVER_ERROR; - int code = find_value(objError, "code").get_int(); + int code = find_value(objError, "code").getInt(); if (code == RPC_INVALID_REQUEST) nStatus = HTTP_BAD_REQUEST; -- cgit v1.2.3