Use bytecode length as CODESIZE
@ -11,6 +11,7 @@ class Disassembly:
self.xrefs = []
self.func_to_addr = {}
self.addr_to_func = {}
self.bytecode = code
try:
mythril_dir = os.environ['MYTHRIL_DIR']
@ -635,7 +635,7 @@ class LaserEVM:
state.stack.append(environment.sender)
elif op == 'CODESIZE':
state.stack.append(len(disassembly.instruction_list))
state.stack.append(len(disassembly.bytecode) // 2)
if op == 'SHA3':
op0, op1 = state.stack.pop(), state.stack.pop()