MCPcopy Create free account
hub / github.com/ElementsProject/elements / TxFromHex

Function TxFromHex

src/test/fuzz/script_assets_test_minimizer.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53CMutableTransaction TxFromHex(const std::string& str)
54{
55 CMutableTransaction tx;
56 try {
57 SpanReader{SER_DISK, SERIALIZE_TRANSACTION_NO_WITNESS, CheckedParseHex(str)} >> tx;
58 } catch (const std::ios_base::failure&) {
59 throw std::runtime_error("Tx deserialization failure");
60 }
61 return tx;
62}
63
64std::vector<CTxOut> TxOutsFromJSON(const UniValue& univalue)
65{

Callers 1

TestFunction · 0.70

Calls 1

CheckedParseHexFunction · 0.85

Tested by

no test coverage detected