We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa41c65 commit fa58469Copy full SHA for fa58469
src/rpc/rawtransaction.cpp
@@ -512,7 +512,8 @@ static UniValue decoderawtransaction(const JSONRPCRequest& request)
512
static std::string GetAllOutputTypes()
513
{
514
std::vector<std::string> ret;
515
- for (int i = TX_NONSTANDARD; i <= TX_WITNESS_UNKNOWN; ++i) {
+ using U = std::underlying_type<txnouttype>::type;
516
+ for (U i = (U)TX_NONSTANDARD; i <= (U)TX_WITNESS_UNKNOWN; ++i) {
517
ret.emplace_back(GetTxnOutputType(static_cast<txnouttype>(i)));
518
}
519
return Join(ret, ", ");
0 commit comments