MCPcopy Create free account
hub / github.com/argotorg/solidity / bytecodeSansMetadata

Function bytecodeSansMetadata

test/Metadata.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bytes bytecodeSansMetadata(bytes const& _bytecode)
54{
55 size_t metadataSize = onlyMetadata(_bytecode).size();
56 if (metadataSize == 0)
57 return bytes{};
58 return bytes(_bytecode.begin(), _bytecode.end() - static_cast<ptrdiff_t>(metadataSize) - 2);
59}
60
61std::string bytecodeSansMetadata(std::string const& _bytecode)
62{

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.85
numInstructionsMethod · 0.85

Calls 5

onlyMetadataFunction · 0.85
toHexFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected