From 9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Mon, 21 Nov 2016 13:53:53 -0600 Subject: convert individual numbers to hex Signed-off-by: VoR0220 --- libdevcore/Common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libdevcore/Common.h b/libdevcore/Common.h index dababe79..225f38ac 100644 --- a/libdevcore/Common.h +++ b/libdevcore/Common.h @@ -138,6 +138,7 @@ inline u256 s2u(s256 _u) inline std::ostream& operator<<(std::ostream& os, bytes const& _bytes) { std::ostringstream ss; + ss << std::hex; std::copy(_bytes.begin(), _bytes.end(), std::ostream_iterator(ss, ",")); std::string result = ss.str(); result.pop_back(); -- cgit