diff options
author | Gav Wood <i@gavwood.com> | 2014-07-10 18:29:39 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-07-10 18:29:39 +0800 |
commit | b3088a69f3e39eee337b16fd57e587d953fd7085 (patch) | |
tree | 5ba9060063576264f7a1b926b2c08c221f6b4493 /vm.cpp | |
parent | d66fa9211fbe59a0f52fccabffd3c5d27a8c06a3 (diff) | |
download | dexon-solidity-b3088a69f3e39eee337b16fd57e587d953fd7085.tar dexon-solidity-b3088a69f3e39eee337b16fd57e587d953fd7085.tar.gz dexon-solidity-b3088a69f3e39eee337b16fd57e587d953fd7085.tar.bz2 dexon-solidity-b3088a69f3e39eee337b16fd57e587d953fd7085.tar.lz dexon-solidity-b3088a69f3e39eee337b16fd57e587d953fd7085.tar.xz dexon-solidity-b3088a69f3e39eee337b16fd57e587d953fd7085.tar.zst dexon-solidity-b3088a69f3e39eee337b16fd57e587d953fd7085.zip |
Even numbers of hex digits for Jeff (Go can't handle odd numbers).
Everything a string in VM tests.
Diffstat (limited to 'vm.cpp')
-rw-r--r-- | vm.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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(); |