Skip to content

Commit

Permalink
Rename MaxCodeSize and MaxInitCodeSize to DefaultMaxCodeSize and Defa…
Browse files Browse the repository at this point in the history
…ultMaxInitCodeSize
  • Loading branch information
ganeshvanahalli committed Nov 27, 2023
1 parent 0a65849 commit 4e7da04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion params/config_arbitrum.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *ChainConfig) IsArbitrumNitro(num *big.Int) bool {

func (c *ChainConfig) MaxCodeSize() uint64 {
if c.ArbitrumChainParams.MaxCodeSize == 0 {
return MaxCodeSize
return DefaultMaxCodeSize
}
return c.ArbitrumChainParams.MaxCodeSize
}
Expand Down
4 changes: 2 additions & 2 deletions params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ 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
MaxInitCodeSize = 2 * MaxCodeSize // Maximum initcode to permit in a creation transaction and create instructions
DefaultMaxCodeSize = 24576 // Maximum bytecode to permit for a contract
DefaultMaxInitCodeSize = 2 * DefaultMaxCodeSize // Maximum initcode to permit in a creation transaction and create instructions

// Precompiled contract gas prices

Expand Down

0 comments on commit 4e7da04

Please sign in to comment.