aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2014-10-23 18:38:45 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2014-10-23 18:38:45 +0800
commit7b7d991954f9f567e1f8b36447e9a4ed851335ce (patch)
treef0bdd1c8c31767101bf81427e8079fb7e316eeaf
parent6ac0c1302adbe9781a945377e369432bf37d0ea6 (diff)
downloaddexon-solidity-7b7d991954f9f567e1f8b36447e9a4ed851335ce.tar.gz
dexon-solidity-7b7d991954f9f567e1f8b36447e9a4ed851335ce.tar.zst
dexon-solidity-7b7d991954f9f567e1f8b36447e9a4ed851335ce.zip
Update createRandomTest.cpp to use new VM construction method
-rw-r--r--createRandomTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/createRandomTest.cpp b/createRandomTest.cpp
index 874869a5..dbe50851 100644
--- a/createRandomTest.cpp
+++ b/createRandomTest.cpp
@@ -97,7 +97,9 @@ void doMyTests(json_spirit::mValue& v)
assert(o.count("pre") > 0);
assert(o.count("exec") > 0);
- eth::VM vm;
+
+ auto vmObj = eth::VMFace::create(eth::VMFace::Interpreter);
+ auto& vm = *vmObj;
test::FakeExtVM fev;
fev.importEnv(o["env"].get_obj());
fev.importState(o["pre"].get_obj());