Skip to content

Commit

Permalink
Merge pull request #1983 from OffchainLabs/rename-params-maxcodesize
Browse files Browse the repository at this point in the history
Rename MaxCodeSize and MaxInitCodeSize to DefaultMaxCodeSize and DefaultMaxInitCodeSize
  • Loading branch information
joshuacolvin0 authored Nov 28, 2023
2 parents c4229f2 + 89f2623 commit eec9c7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go-ethereum
8 changes: 4 additions & 4 deletions system_tests/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func TestContractDeployment(t *testing.T) {
defer cleanup()

account := builder.L2Info.GetInfoWithPrivKey("Faucet")
for _, size := range []int{0, 1, 1000, 20000, params.MaxCodeSize} {
for _, size := range []int{0, 1, 1000, 20000, params.DefaultMaxCodeSize} {
testContractDeployment(t, ctx, builder.L2.Client, makeContractOfLength(size), account, nil)
}

Expand All @@ -128,13 +128,13 @@ func TestExtendedContractDeployment(t *testing.T) {
defer cancel()

builder := NewNodeBuilder(ctx).DefaultConfig(t, false)
builder.chainConfig.ArbitrumChainParams.MaxCodeSize = params.MaxCodeSize * 3
builder.chainConfig.ArbitrumChainParams.MaxInitCodeSize = params.MaxInitCodeSize * 3
builder.chainConfig.ArbitrumChainParams.MaxCodeSize = params.DefaultMaxCodeSize * 3
builder.chainConfig.ArbitrumChainParams.MaxInitCodeSize = params.DefaultMaxInitCodeSize * 3
cleanup := builder.Build(t)
defer cleanup()

account := builder.L2Info.GetInfoWithPrivKey("Faucet")
for _, size := range []int{0, 1, 1000, 20000, 30000, 40000, 60000, params.MaxCodeSize * 3} {
for _, size := range []int{0, 1, 1000, 20000, 30000, 40000, 60000, params.DefaultMaxCodeSize * 3} {
testContractDeployment(t, ctx, builder.L2.Client, makeContractOfLength(size), account, nil)
}

Expand Down

0 comments on commit eec9c7c

Please sign in to comment.