mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update createRandomTest.cpp to use new VM construction method
This commit is contained in:
parent
6ac0c1302a
commit
7b7d991954
@ -97,7 +97,9 @@ void doMyTests(json_spirit::mValue& v)
|
|||||||
assert(o.count("pre") > 0);
|
assert(o.count("pre") > 0);
|
||||||
assert(o.count("exec") > 0);
|
assert(o.count("exec") > 0);
|
||||||
|
|
||||||
eth::VM vm;
|
|
||||||
|
auto vmObj = eth::VMFace::create(eth::VMFace::Interpreter);
|
||||||
|
auto& vm = *vmObj;
|
||||||
test::FakeExtVM fev;
|
test::FakeExtVM fev;
|
||||||
fev.importEnv(o["env"].get_obj());
|
fev.importEnv(o["env"].get_obj());
|
||||||
fev.importState(o["pre"].get_obj());
|
fev.importState(o["pre"].get_obj());
|
||||||
|
Loading…
Reference in New Issue
Block a user