From e98983bd011c12c92950aa44b7c7df6577341477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaan=20Uzdo=C4=9Fan?= Date: Mon, 30 Dec 2024 16:09:53 +0100 Subject: [PATCH] Fix Vyper runtime bytecode vs bytecode in the compilation UI --- apps/vyper/src/app/utils/compiler.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/vyper/src/app/utils/compiler.tsx b/apps/vyper/src/app/utils/compiler.tsx index 7f1c7d0f00..35657fc1c3 100644 --- a/apps/vyper/src/app/utils/compiler.tsx +++ b/apps/vyper/src/app/utils/compiler.tsx @@ -31,8 +31,6 @@ const compileReturnType = (output, contract): VyperCompilationResult => { const normal = normalizeContractPath(contract)[2] const abi = temp[normal]['abi'] const evm = _.merge(temp[normal]['evm']) - const depByteCode = evm.deployedBytecode - const runtimeBytecode = evm.bytecode const methodIdentifiers = evm.methodIdentifiers // TODO: verify this is correct const version = output.version || '0.4.0' @@ -52,8 +50,8 @@ const compileReturnType = (output, contract): VyperCompilationResult => { } = { contractName: normal, abi, - bytecode: depByteCode, - runtimeBytecode, + bytecode: evm.bytecode, + runtimeBytecode: evm.deployedBytecode, ir: '', methodIdentifiers, version,