MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ParseHexV

Function ParseHexV

src/rpc/core/rpcserver.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 return ParseHashV(find_value(o, strKey), strKey);
137}
138vector<unsigned char> ParseHexV(const Value& v, string strName) {
139 string strHex;
140 if (v.type() == str_type) strHex = v.get_str();
141 if (!IsHex(strHex))
142 throw JSONRPCError(RPC_INVALID_PARAMETER,
143 strName + " must be hexadecimal string (not '" + strHex + "')");
144 return ParseHex(strHex);
145}
146vector<unsigned char> ParseHexO(const Object& o, string strKey) {
147 return ParseHexV(find_value(o, strKey), strKey);
148}

Callers 1

ParseHexOFunction · 0.85

Calls 4

IsHexFunction · 0.85
JSONRPCErrorFunction · 0.85
ParseHexFunction · 0.85
typeMethod · 0.80

Tested by

no test coverage detected