diff --git a/libevm/VM.h b/libevm/VM.h index 344764d87..2ddf16bb6 100644 --- a/libevm/VM.h +++ b/libevm/VM.h @@ -52,11 +52,10 @@ public: bytes const& memory() const { return m_temp; } u256s const& stack() const { return m_stack; } +private: friend VMFace; explicit VM(u256 _gas = 0): VMFace(_gas) {} -private: - template bytesConstRef go(Ext& _ext, OnOpFunc const& _onOp, uint64_t _steps); diff --git a/test/createRandomTest.cpp b/test/createRandomTest.cpp index 874869a5c..dbe50851a 100644 --- a/test/createRandomTest.cpp +++ b/test/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());