refactor: Replace get_int by getInt<int> alias

This commit is contained in:
MacroFake 2022-05-30 16:39:46 +02:00
parent e4e8186ab4
commit 9b50a309ff

View file

@ -616,7 +616,7 @@ static RPCHelpMan gettxspendingprevout()
}, /*fAllowNull=*/false, /*fStrict=*/true);
const uint256 txid(ParseHashO(o, "txid"));
const int nOutput = find_value(o, "vout").get_int();
const int nOutput{find_value(o, "vout").getInt<int>()};
if (nOutput < 0) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout cannot be negative");
}