From b3088a69f3e39eee337b16fd57e587d953fd7085 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 10 Jul 2014 11:29:39 +0100 Subject: Even numbers of hex digits for Jeff (Go can't handle odd numbers). Everything a string in VM tests. --- vm.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/vm.cpp b/vm.cpp index 6b624a63..254c4ef2 100644 --- a/vm.cpp +++ b/vm.cpp @@ -154,17 +154,17 @@ public: static void push(mObject& o, string const& _n, u256 _v) { - if (_v < (u256)1 << 64) - o[_n] = (uint64_t)_v; - else +// if (_v < (u256)1 << 64) +// o[_n] = (uint64_t)_v; +// else o[_n] = toString(_v); } static void push(mArray& a, u256 _v) { - if (_v < (u256)1 << 64) - a.push_back((uint64_t)_v); - else +// if (_v < (u256)1 << 64) +// a.push_back((uint64_t)_v); +// else a.push_back(toString(_v)); } @@ -405,6 +405,7 @@ void doTests(json_spirit::mValue& v, bool _fillin) if (_fillin) { + o["env"] = mValue(fev.exportEnv()); o["exec"] = mValue(fev.exportExec()); o["post"] = mValue(fev.exportState()); o["callcreates"] = fev.exportCallCreates(); -- cgit v1.2.3