From 06cc5e5aadc38ba4861bf76680b7fbec9fcccf4b Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Thu, 18 Apr 2019 18:04:06 +0100 Subject: [PATCH] uint256_ts are lower case by default, when converted to json (#31) * Lower-case hex strings are the default for json output * Remove debug printing --- include/bigint.h | 2 +- include/util.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/bigint.h b/include/bigint.h index 85b2ac8..11b637f 100644 --- a/include/bigint.h +++ b/include/bigint.h @@ -88,7 +88,7 @@ namespace boost { inline void to_json(nlohmann::json& j, const uint256_t& v) { - j = to_hex_str(v); + j = to_lower_hex_str(v); } inline void from_json(const nlohmann::json& j, uint256_t& v) diff --git a/include/util.h b/include/util.h index 12ae34e..adcde12 100644 --- a/include/util.h +++ b/include/util.h @@ -101,9 +101,6 @@ namespace evm // Start at index 2 to skip the "0x" prefix const auto h = keccak_256(s, 2); - std::cout << s << std::endl; - std::cout << to_hex_string(h) << std::endl; - for (size_t i = 0; i < s.size() - 2; ++i) { auto& c = s[i + 2];