From ab25d9211bcca63a244badf9d5b3f851a36ace2b Mon Sep 17 00:00:00 2001 From: Karl Bartel Date: Wed, 19 Jun 2024 11:19:48 +0200 Subject: [PATCH] Increase MaxCodeSize to 65536 as in Celo L1 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. --- params/protocol_params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/params/protocol_params.go b/params/protocol_params.go index 5e2a0632af..88fb80ba60 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -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