Skip to content

Commit

Permalink
better reading
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Apr 25, 2023
1 parent 6ec61ec commit afdee6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/remix-ui/run-tab/src/lib/actions/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afdee6a

Please sign in to comment.