From a9b56ef5ff81ae9a27e9c928ee55167f72f51665 Mon Sep 17 00:00:00 2001 From: Alexander Arlt Date: Wed, 26 Apr 2023 19:50:00 -0500 Subject: [PATCH] [evmasm::Assembly] Fix createAssemblyItemFromJSON value check: no value on c_instructions. --- libevmasm/Assembly.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index 3875b7dd7..6ac8eb95a 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -195,9 +195,7 @@ AssemblyItem Assembly::createAssemblyItemFromJSON(Json::Value const& _json, std: "Member 'jumpType' set on instruction different from JUMP or JUMPI (was set on instruction '" + name + "')" ); } - InstructionInfo info = instructionInfo(item.instruction(), m_evmVersion); - if (info.args == 0) - requireValueUndefinedForInstruction(name, value); + requireValueUndefinedForInstruction(name, value); result = item; } else