aboutsummaryrefslogtreecommitdiffstats
path: root/createRandomTest.cpp
diff options
context:
space:
mode:
authorChristoph Jentzsch <jentzsch.software@gmail.com>2014-11-04 06:49:05 +0800
committerChristoph Jentzsch <jentzsch.software@gmail.com>2014-11-04 06:49:05 +0800
commit1310011f77d157265c8137daf90c9f7bb9f6e90e (patch)
tree63ec1de03c0a9bb6562f197ed4e126014fd1b05a /createRandomTest.cpp
parentc931e3ceec902c31734fe6e7143a209d7637611f (diff)
downloaddexon-solidity-1310011f77d157265c8137daf90c9f7bb9f6e90e.tar.gz
dexon-solidity-1310011f77d157265c8137daf90c9f7bb9f6e90e.tar.zst
dexon-solidity-1310011f77d157265c8137daf90c9f7bb9f6e90e.zip
Fix ABAcalls OOG bug
Diffstat (limited to 'createRandomTest.cpp')
-rw-r--r--createRandomTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/createRandomTest.cpp b/createRandomTest.cpp
index 28e4342d..457478fd 100644
--- a/createRandomTest.cpp
+++ b/createRandomTest.cpp
@@ -134,10 +134,10 @@ void doMyTests(json_spirit::mValue& v)
o["pre"] = mValue(fev.exportState());
fev.importExec(o["exec"].get_obj());
- if (!fev.code)
+ if (!fev.code.size())
{
fev.thisTxCode = get<3>(fev.addresses.at(fev.myAddress));
- fev.code = &fev.thisTxCode;
+ fev.code = fev.thisTxCode;
}
vm.reset(fev.gas);