aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Jentzsch <jentzsch.software@gmail.com>2014-10-31 16:46:20 +0800
committerChristoph Jentzsch <jentzsch.software@gmail.com>2014-10-31 16:46:20 +0800
commitbc1aaa78a8fc2954e45e5cea9118f61aec16ad80 (patch)
treed211f0563a4245796bebcbf59b6cc456ffc86271
parent3d17d7b2f13545914647fd5d3eaceda3a8646fc4 (diff)
parentbf763824f327c956392cd527c30d57bb3ec6fe1f (diff)
downloaddexon-solidity-bc1aaa78a8fc2954e45e5cea9118f61aec16ad80.tar.gz
dexon-solidity-bc1aaa78a8fc2954e45e5cea9118f61aec16ad80.tar.zst
dexon-solidity-bc1aaa78a8fc2954e45e5cea9118f61aec16ad80.zip
Merge remote-tracking branch 'upstream/develop' into stateTests
Conflicts: libethereum/AddressState.h test/vm.cpp
-rw-r--r--vm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.cpp b/vm.cpp
index d1728e2e..e8105ac6 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -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));