aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-07-10 18:29:39 +0800
committerGav Wood <i@gavwood.com>2014-07-10 18:29:39 +0800
commitb3088a69f3e39eee337b16fd57e587d953fd7085 (patch)
tree5ba9060063576264f7a1b926b2c08c221f6b4493 /vm.cpp
parentd66fa9211fbe59a0f52fccabffd3c5d27a8c06a3 (diff)
downloaddexon-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.cpp13
1 files 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();