Fix for making code.

This commit is contained in:
Gav Wood 2014-07-10 10:16:34 +01:00
parent 27a7415bfa
commit d66fa9211f

5
vm.cpp
View File

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