diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-10-28 23:26:33 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-10-28 23:26:33 +0800 |
commit | cacc4477bf134ce28a87414e839e8fcc857a947d (patch) | |
tree | eec415ad5306befcb54f5937b34e0a4dc960b3a1 /vm.cpp | |
parent | f59a8f58240f333a24c7f654171cdf7083d21aca (diff) | |
download | dexon-solidity-cacc4477bf134ce28a87414e839e8fcc857a947d.tar.gz dexon-solidity-cacc4477bf134ce28a87414e839e8fcc857a947d.tar.zst dexon-solidity-cacc4477bf134ce28a87414e839e8fcc857a947d.zip |
Fix VM test code loading conditions
Diffstat (limited to 'vm.cpp')
-rw-r--r-- | vm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -359,9 +359,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)); |