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/wallet/rpc/addresses.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wallet/rpc/addresses.cpp') diff --git a/src/wallet/rpc/addresses.cpp b/src/wallet/rpc/addresses.cpp index d4f6c9d805..d5444f5051 100644 --- a/src/wallet/rpc/addresses.cpp +++ b/src/wallet/rpc/addresses.cpp @@ -264,7 +264,7 @@ RPCHelpMan addmultisigaddress() if (!request.params[2].isNull()) label = LabelFromValue(request.params[2]); - int required = request.params[0].get_int(); + int required = request.params[0].getInt(); // Get the public keys const UniValue& keys_or_addrs = request.params[1].get_array(); @@ -340,9 +340,9 @@ RPCHelpMan keypoolrefill() // 0 is interpreted by TopUpKeyPool() as the default keypool size given by -keypool unsigned int kpSize = 0; if (!request.params[0].isNull()) { - if (request.params[0].get_int() < 0) + if (request.params[0].getInt() < 0) throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected valid size."); - kpSize = (unsigned int)request.params[0].get_int(); + kpSize = (unsigned int)request.params[0].getInt(); } EnsureWalletIsUnlocked(*pwallet); -- cgit v1.2.3