Skip to content

Commit 9b50a30

Browse files
author
MacroFake
committed
refactor: Replace get_int by getInt<int> alias
1 parent e4e8186 commit 9b50a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/mempool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ static RPCHelpMan gettxspendingprevout()
616616
}, /*fAllowNull=*/false, /*fStrict=*/true);
617617

618618
const uint256 txid(ParseHashO(o, "txid"));
619-
const int nOutput = find_value(o, "vout").get_int();
619+
const int nOutput{find_value(o, "vout").getInt<int>()};
620620
if (nOutput < 0) {
621621
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout cannot be negative");
622622
}

0 commit comments

Comments
 (0)