Merge pull request #9401 from ethereum/isoltest-update-hex

Fix formatting hex strings in isoltest update
This commit is contained in:
chriseth 2020-07-13 20:27:15 +02:00 committed by GitHub
commit 0212a16b02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@
#include <liblangutil/Common.h>
#include <libsolutil/CommonData.h>
#include <libsolutil/StringUtils.h>
#include <boost/algorithm/string.hpp>
@ -198,8 +199,7 @@ string BytesUtils::formatString(bytes const& _bytes, size_t _cutOff)
if (isprint(v))
os << v;
else
os << "\\x" << setw(2) << setfill('0') << hex << v;
os << "\\x" << toHex(v);
}
}
os << "\"";