Browse Source

blockweight: allfields to compact Hex fix

cl-refactor
winsvega 10 years ago
parent
commit
32f38eb207
  1. 2
      test/TestHelper.cpp
  2. 2
      test/libethereum/state.cpp

2
test/TestHelper.cpp

@ -137,7 +137,7 @@ json_spirit::mObject& ImportTest::makeAllFieldsHex(json_spirit::mObject& _o)
str = value.get_str(); str = value.get_str();
else continue; 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; return _o;
} }

2
test/libethereum/state.cpp

@ -30,7 +30,7 @@
#include <libethereum/ExtVM.h> #include <libethereum/ExtVM.h>
#include <libethereum/Defaults.h> #include <libethereum/Defaults.h>
#include <libevm/VM.h> #include <libevm/VM.h>
#include "../TestHelper.h" #include <test/TestHelper.h>
using namespace std; using namespace std;
using namespace json_spirit; using namespace json_spirit;

Loading…
Cancel
Save