mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-29 05:51:12 +02:00
refactor: Replace get_int by getInt<int> alias
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user