Merge remote-tracking branch 'upstream/develop' into stateTests

Conflicts:
	libethereum/AddressState.h
	test/vm.cpp
This commit is contained in:
Christoph Jentzsch 2014-10-31 09:46:20 +01:00
commit bc1aaa78a8

4
vm.cpp
View File

@ -252,9 +252,9 @@ void FakeExtVM::importExec(mObject& _o)
code = &thisTxCode;
if (_o["code"].type() == str_type)
if (_o["code"].get_str().find_first_of("0x") == 0)
thisTxCode = compileLLL(_o["code"].get_str());
else
thisTxCode = fromHex(_o["code"].get_str().substr(2));
else
thisTxCode = compileLLL(_o["code"].get_str());
else if (_o["code"].type() == array_type)
for (auto const& j: _o["code"].get_array())
thisTxCode.push_back(toByte(j));