From cacc4477bf134ce28a87414e839e8fcc857a947d Mon Sep 17 00:00:00 2001 From: Paweł Bylica Date: Tue, 28 Oct 2014 16:26:33 +0100 Subject: Fix VM test code loading conditions --- vm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm.cpp') diff --git a/vm.cpp b/vm.cpp index 40a0a862..d69f03fd 100644 --- a/vm.cpp +++ b/vm.cpp @@ -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)); -- cgit