Update createRandomTest.cpp to use new VM construction method

This commit is contained in:
Paweł Bylica 2014-10-23 12:38:45 +02:00
parent 6ac0c1302a
commit 7b7d991954

View File

@ -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());