aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vm.cpp')
-rw-r--r--vm.cpp5
1 files changed, 4 insertions, 1 deletions
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();