From e3d03fd08027ab911ba502995003aa41053a6989 Mon Sep 17 00:00:00 2001 From: Chaofan Shou Date: Sat, 9 Sep 2023 15:23:47 -0700 Subject: [PATCH] remove onchain bytecode swapping --- src/evm/contract_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evm/contract_utils.rs b/src/evm/contract_utils.rs index 4d6d8ac60..713364734 100644 --- a/src/evm/contract_utils.rs +++ b/src/evm/contract_utils.rs @@ -404,7 +404,7 @@ impl ContractLoader { let result = builder.onchain_job(onchain.chain_name.clone(), addr); if let Some(result) = result { abi = Some(result.abi.clone()); - bytecode = Some(to_analysed(Bytecode::new_raw(result.bytecodes.clone()))); + bytecode = Some(onchain.get_contract_code(addr, false)); // Some(to_analysed(Bytecode::new_raw(result.bytecodes.clone()))); build_artifact = Some(result); } }