From d66fa9211fbe59a0f52fccabffd3c5d27a8c06a3 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 10 Jul 2014 10:16:34 +0100 Subject: Fix for making code. --- vm.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vm.cpp b/vm.cpp index b91ed420..6b624a63 100644 --- a/vm.cpp +++ b/vm.cpp @@ -396,7 +396,10 @@ void doTests(json_spirit::mValue& v, bool _fillin) fev.importExec(o["exec"].get_obj()); if (!fev.code) - fev.code = &get<3>(fev.addresses.at(fev.myAddress)); + { + fev.thisTxCode = get<3>(fev.addresses.at(fev.myAddress)); + fev.code = &fev.thisTxCode; + } vm.reset(fev.gas); bytes output = vm.go(fev).toBytes(); -- cgit v1.2.3