From 9101b7073ab188e71a4ab26298ffacc529cdf97b Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Fri, 5 Dec 2014 19:26:32 +0100 Subject: state log tests --- createRandomTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'createRandomTest.cpp') diff --git a/createRandomTest.cpp b/createRandomTest.cpp index 1647ce81..caeeb6b6 100644 --- a/createRandomTest.cpp +++ b/createRandomTest.cpp @@ -189,7 +189,7 @@ void doMyTests(json_spirit::mValue& v) o["callcreates"] = fev.exportCallCreates(); o["out"] = "0x" + toHex(output); fev.push(o, "gas", gas); - o["logs"] = mValue(test::exportLog(fev.sub.logs)); + o["logs"] = test::exportLog(fev.sub.logs); } } } -- cgit v1.2.3 From c1ffbbe79729b25da0d0231cd81fe2ab60519448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Wed, 10 Dec 2014 17:41:53 +0100 Subject: VMFactory - a new way of creating VMs --- createRandomTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'createRandomTest.cpp') diff --git a/createRandomTest.cpp b/createRandomTest.cpp index caeeb6b6..a1168845 100644 --- a/createRandomTest.cpp +++ b/createRandomTest.cpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include "vm.h" using namespace std; @@ -142,14 +142,14 @@ void doMyTests(json_spirit::mValue& v) } bytes output; - eth::VM vm(fev.gas); + auto vm = eth::VMFactory::create(fev.gas); u256 gas; bool vmExceptionOccured = false; try { - output = vm.go(fev, fev.simpleTrace()).toBytes(); - gas = vm.gas(); + output = vm->go(fev, fev.simpleTrace()).toBytes(); + gas = vm->gas(); } catch (eth::VMException const& _e) { -- cgit v1.2.3