mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
refactor: Replace get_int by getInt<int> alias
This commit is contained in:
parent
e4e8186ab4
commit
9b50a309ff
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue