better reading

update-ghaction
yann300 2 years ago committed by Aniket
parent 64d2a6d58d
commit f4a5ad2878
  1. 4
      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

Loading…
Cancel
Save