From 197f5ff0c9bff867301506aaa459735e3b05b19f Mon Sep 17 00:00:00 2001 From: ganeshvanahalli Date: Mon, 27 Nov 2023 19:56:36 +0530 Subject: [PATCH] minor fix --- core/state_processor_test.go | 2 +- params/config_arbitrum.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/state_processor_test.go b/core/state_processor_test.go index b31bf0076d..87f03d3cbc 100644 --- a/core/state_processor_test.go +++ b/core/state_processor_test.go @@ -128,7 +128,7 @@ func TestStateProcessorErrors(t *testing.T) { }, } blockchain, _ = NewBlockChain(db, nil, nil, gspec, nil, beacon.New(ethash.NewFaker()), vm.Config{}, nil, nil) - tooBigInitCode = [params.MaxInitCodeSize + 1]byte{} + tooBigInitCode = [params.DefaultMaxInitCodeSize + 1]byte{} ) defer blockchain.Stop() diff --git a/params/config_arbitrum.go b/params/config_arbitrum.go index b9c74f4c10..869386415b 100644 --- a/params/config_arbitrum.go +++ b/params/config_arbitrum.go @@ -29,8 +29,8 @@ type ArbitrumChainParams struct { InitialArbOSVersion uint64 InitialChainOwner common.Address GenesisBlockNum uint64 - MaxCodeSize uint64 `json:"MaxCodeSize,omitempty"` // Maximum bytecode to permit for a contract. 0 value implies params.MaxCodeSize - MaxInitCodeSize uint64 `json:"MaxInitCodeSize,omitempty"` // Maximum initcode to permit in a creation transaction and create instructions. 0 value implies params.MaxInitCodeSize + MaxCodeSize uint64 `json:"MaxCodeSize,omitempty"` // Maximum bytecode to permit for a contract. 0 value implies params.DefaultMaxCodeSize + MaxInitCodeSize uint64 `json:"MaxInitCodeSize,omitempty"` // Maximum initcode to permit in a creation transaction and create instructions. 0 value implies params.DefaultMaxInitCodeSize } func (c *ChainConfig) IsArbitrum() bool {