Skip to content

Commit 4e7da04

Browse files
Rename MaxCodeSize and MaxInitCodeSize to DefaultMaxCodeSize and DefaultMaxInitCodeSize
1 parent 0a65849 commit 4e7da04

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

params/config_arbitrum.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (c *ChainConfig) IsArbitrumNitro(num *big.Int) bool {
4343

4444
func (c *ChainConfig) MaxCodeSize() uint64 {
4545
if c.ArbitrumChainParams.MaxCodeSize == 0 {
46-
return MaxCodeSize
46+
return DefaultMaxCodeSize
4747
}
4848
return c.ArbitrumChainParams.MaxCodeSize
4949
}

params/protocol_params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ const (
124124
DefaultElasticityMultiplier = 2 // Bounds the maximum gas limit an EIP-1559 block may have.
125125
InitialBaseFee = 1000000000 // Initial base fee for EIP-1559 blocks.
126126

127-
MaxCodeSize = 24576 // Maximum bytecode to permit for a contract
128-
MaxInitCodeSize = 2 * MaxCodeSize // Maximum initcode to permit in a creation transaction and create instructions
127+
DefaultMaxCodeSize = 24576 // Maximum bytecode to permit for a contract
128+
DefaultMaxInitCodeSize = 2 * DefaultMaxCodeSize // Maximum initcode to permit in a creation transaction and create instructions
129129

130130
// Precompiled contract gas prices
131131

0 commit comments

Comments
 (0)