Skip to content

Commit

Permalink
Increase MaxCodeSize to 65536 as in Celo L1
Browse files Browse the repository at this point in the history
This keeps compatibility with the Celo L1, so that both core contracts
and third party contracts will be able to do fresh deploys after the L2
migration. If we want to go the Ethereum's value, it is better done
some time after the L2 migration to avoid having many breaking changes
at the same time.
  • Loading branch information
karlb committed Jun 25, 2024
1 parent 26b8a1d commit ab25d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const (
DefaultElasticityMultiplier = 2 // Bounds the maximum gas limit an EIP-1559 block may have.
InitialBaseFee = 1000000000 // Initial base fee for EIP-1559 blocks.

MaxCodeSize = 24576 // Maximum bytecode to permit for a contract
MaxCodeSize = 65536 // Maximum bytecode to permit for a contract
MaxInitCodeSize = 2 * MaxCodeSize // Maximum initcode to permit in a creation transaction and create instructions

// Precompiled contract gas prices
Expand Down

0 comments on commit ab25d92

Please sign in to comment.