From 82e4f6f604b3fa84e16e4bb45bcb7093a8a1eb70 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 25 Aug 2017 12:10:28 +0200 Subject: Cleanup of FixedHash.h --- libevmasm/AssemblyItem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libevmasm') diff --git a/libevmasm/AssemblyItem.cpp b/libevmasm/AssemblyItem.cpp index 419a8c0b..1af266b6 100644 --- a/libevmasm/AssemblyItem.cpp +++ b/libevmasm/AssemblyItem.cpp @@ -249,8 +249,11 @@ ostream& dev::eth::operator<<(ostream& _out, AssemblyItem const& _item) _out << " PushProgramSize"; break; case PushLibraryAddress: - _out << " PushLibraryAddress " << hex << h256(_item.data()).abridgedMiddle() << dec; + { + string hash(h256((_item.data())).hex()); + _out << " PushLibraryAddress " << hash.substr(0, 8) + "..." + hash.substr(hash.length() - 8); break; + } case UndefinedItem: _out << " ???"; break; -- cgit