Browse Source

Update createRandomTest.cpp to use new VM construction method

cl-refactor
Paweł Bylica 10 years ago
parent
commit
eb347cb24c
  1. 3
      libevm/VM.h
  2. 4
      test/createRandomTest.cpp

3
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 <class Ext>
bytesConstRef go(Ext& _ext, OnOpFunc const& _onOp, uint64_t _steps);

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

Loading…
Cancel
Save