From 1f3127c33a3e22afb540854daf4f447a9de45688 Mon Sep 17 00:00:00 2001 From: ganeshvanahalli Date: Mon, 27 Nov 2023 21:21:39 +0530 Subject: [PATCH] Rename MaxCodeSize and MaxInitCodeSize to DefaultMaxCodeSize and DefaultMaxInitCodeSize --- go-ethereum | 2 +- system_tests/deployment_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go-ethereum b/go-ethereum index f4eec6e6f9..197f5ff0c9 160000 --- a/go-ethereum +++ b/go-ethereum @@ -1 +1 @@ -Subproject commit f4eec6e6f9dcc2c2b32b5af049001ca1629bb5f2 +Subproject commit 197f5ff0c9bff867301506aaa459735e3b05b19f diff --git a/system_tests/deployment_test.go b/system_tests/deployment_test.go index a689abaa1a..c7767fef9a 100644 --- a/system_tests/deployment_test.go +++ b/system_tests/deployment_test.go @@ -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) } @@ -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) }