Skip to content

Conversation

@Saw-mon-and-Natalie
Copy link

@Saw-mon-and-Natalie Saw-mon-and-Natalie commented Jun 14, 2022

Changes to contracts/utils/Bytecode.sol:

  • creationCodeFor has been changed to use PUSH2 instead of PUSH4 since there is a max contract size limit of 24576 bytes which is less than 2^16 = 65536 (uint16). Also PUSH1 0 instructions have been changed to RETURNDATASIZE.
  • codeAt has been changed so that only one subtraction is used to calculate size and also an extra addition in the assembly block has been removed to replace 0x20 + 0x1f with 0x3f.

All tests are passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant