diff options
author | chriseth <chris@ethereum.org> | 2017-08-26 00:49:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-26 00:49:49 +0800 |
commit | 6475bd9a72526011b495fae45aa6c8ddb514f611 (patch) | |
tree | fdc6cd2cadea9f1056b29923c837de9a286373c1 /libevmasm | |
parent | 47b08fa75223cb247106a4bc1b293fc4cef47484 (diff) | |
parent | 82e4f6f604b3fa84e16e4bb45bcb7093a8a1eb70 (diff) | |
download | dexon-solidity-6475bd9a72526011b495fae45aa6c8ddb514f611.tar dexon-solidity-6475bd9a72526011b495fae45aa6c8ddb514f611.tar.gz dexon-solidity-6475bd9a72526011b495fae45aa6c8ddb514f611.tar.bz2 dexon-solidity-6475bd9a72526011b495fae45aa6c8ddb514f611.tar.lz dexon-solidity-6475bd9a72526011b495fae45aa6c8ddb514f611.tar.xz dexon-solidity-6475bd9a72526011b495fae45aa6c8ddb514f611.tar.zst dexon-solidity-6475bd9a72526011b495fae45aa6c8ddb514f611.zip |
Merge pull request #2809 from ethereum/cleanupFixedHash
Cleanup fixed hash
Diffstat (limited to 'libevmasm')
-rw-r--r-- | libevmasm/AssemblyItem.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; |