Skip to content

Commit

Permalink
Rename l2info to info in createNonL1BlockChainWithStackConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoximenes committed Sep 23, 2024
1 parent 479f85a commit c1bd83e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions system_tests/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1220,10 +1220,10 @@ func createL2BlockChain(
}

func createNonL1BlockChainWithStackConfig(
t *testing.T, l2info *BlockchainTestInfo, dataDir string, chainConfig *params.ChainConfig, initMessage *arbostypes.ParsedInitMessage, stackConfig *node.Config, execConfig *gethexec.Config,
t *testing.T, info *BlockchainTestInfo, dataDir string, chainConfig *params.ChainConfig, initMessage *arbostypes.ParsedInitMessage, stackConfig *node.Config, execConfig *gethexec.Config,
) (*BlockchainTestInfo, *node.Node, ethdb.Database, ethdb.Database, *core.BlockChain) {
if l2info == nil {
l2info = NewArbTestInfo(t, chainConfig.ChainID)
if info == nil {
info = NewArbTestInfo(t, chainConfig.ChainID)
}
if stackConfig == nil {
stackConfig = testhelpers.CreateStackConfigForTest(dataDir)
Expand All @@ -1243,7 +1243,7 @@ func createNonL1BlockChainWithStackConfig(
arbDb, err := stack.OpenDatabaseWithExtraOptions("arbitrumdata", 0, 0, "arbitrumdata/", false, conf.PersistentConfigDefault.Pebble.ExtraOptions("arbitrumdata"))
Require(t, err)

initReader := statetransfer.NewMemoryInitDataReader(&l2info.ArbInitData)
initReader := statetransfer.NewMemoryInitDataReader(&info.ArbInitData)
if initMessage == nil {
serializedChainConfig, err := json.Marshal(chainConfig)
Require(t, err)
Expand All @@ -1258,7 +1258,7 @@ func createNonL1BlockChainWithStackConfig(
blockchain, err := gethexec.WriteOrTestBlockChain(chainDb, coreCacheConfig, initReader, chainConfig, initMessage, ExecConfigDefaultTest(t).TxLookupLimit, 0)
Require(t, err)

return l2info, stack, chainDb, arbDb, blockchain
return info, stack, chainDb, arbDb, blockchain
}

func ClientForStack(t *testing.T, backend *node.Node) *ethclient.Client {
Expand Down

0 comments on commit c1bd83e

Please sign in to comment.