From 8c03a971a501fb8285c2a31b4cd9052b3a039281 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 25 Apr 2023 14:03:06 +0200 Subject: [PATCH] better reading --- libs/remix-ui/run-tab/src/lib/actions/deploy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/actions/deploy.ts b/libs/remix-ui/run-tab/src/lib/actions/deploy.ts index 761d090f366..50be404b4a9 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/deploy.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/deploy.ts @@ -68,11 +68,11 @@ export const getSelectedContract = (contractName: string, compiler: CompilerAbst const encodedParams = await txFormat.encodeParams(args, txHelper.getConstructorInterface(contract.object.abi)) const bytecode = contract.object.evm.bytecode.object + (encodedParams as any).dataHex // https://eips.ethereum.org/EIPS/eip-3860 - const initCodeOversize = (bytecode && bytecode.length / 2 > 2 * 24576) + const initCodeOversize = bytecode && (bytecode.length / 2 > 2 * 24576) const deployedBytecode = contract.object.evm.deployedBytecode // https://eips.ethereum.org/EIPS/eip-170 - const deployedBytecodeOversize = (deployedBytecode && deployedBytecode.object.length / 2 > 24576) + const deployedBytecodeOversize = deployedBytecode && (deployedBytecode.object.length / 2 > 24576) return { overSizeEip3860: initCodeOversize, overSizeEip170: deployedBytecodeOversize