From 32f38eb207b767144dedca6374f87c6e2c04f683 Mon Sep 17 00:00:00 2001 From: winsvega Date: Thu, 23 Apr 2015 17:57:59 +0300 Subject: [PATCH] blockweight: allfields to compact Hex fix --- test/TestHelper.cpp | 2 +- test/libethereum/state.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/TestHelper.cpp b/test/TestHelper.cpp index b8e320e48..57ec0566d 100644 --- a/test/TestHelper.cpp +++ b/test/TestHelper.cpp @@ -137,7 +137,7 @@ json_spirit::mObject& ImportTest::makeAllFieldsHex(json_spirit::mObject& _o) str = value.get_str(); else continue; - _o[key] = (str.substr(0, 2) == "0x") ? str : toHex(toInt(str), HexPrefix::Add); + _o[key] = (str.substr(0, 2) == "0x") ? str : toCompactHex(toInt(str), HexPrefix::Add); } return _o; } diff --git a/test/libethereum/state.cpp b/test/libethereum/state.cpp index 670ed0330..900f3060f 100644 --- a/test/libethereum/state.cpp +++ b/test/libethereum/state.cpp @@ -30,7 +30,7 @@ #include #include #include -#include "../TestHelper.h" +#include using namespace std; using namespace json_spirit;