Add onlyMetadata helper in test/Metadata

This commit is contained in:
Alex Beregszaszi
2019-03-09 12:34:26 +01:00
parent 4d8c57006b
commit 12f34c8229
3 changed files with 18 additions and 9 deletions
+3
View File
@@ -27,6 +27,9 @@ namespace dev
namespace test
{
/// Returns only the CBOR metadata.
bytes onlyMetadata(bytes const& _bytecode);
/// Returns the bytecode with the metadata hash stripped out.
bytes bytecodeSansMetadata(bytes const& _bytecode);