@@ -130,7 +130,7 @@ func GenerateTestBlock(
130130 blobSize ,
131131 )
132132
133- txs := make (coretypes.Txs , 0 )
133+ txs := make (coretypes.Txs , 0 ) //nolint:prealloc
134134 txs = append (txs , coreTxs ... )
135135
136136 eds , err := da .ConstructEDS (txs .ToSliceOfBytes (), appconsts .Version , - 1 )
@@ -152,10 +152,10 @@ func createTestBlobTransactions(
152152 t * testing.T ,
153153 numberOfTransactions , size int ,
154154) ([]libshare.Namespace , []* blobtypes.MsgPayForBlobs , []* libshare.Blob , []coretypes.Tx ) {
155- nss := make ([]libshare.Namespace , 0 )
156- msgs := make ([]* blobtypes.MsgPayForBlobs , 0 )
157- blobs := make ([]* libshare.Blob , 0 )
158- coreTxs := make ([]coretypes.Tx , 0 )
155+ nss := make ([]libshare.Namespace , 0 , numberOfTransactions )
156+ msgs := make ([]* blobtypes.MsgPayForBlobs , 0 , numberOfTransactions )
157+ blobs := make ([]* libshare.Blob , 0 , numberOfTransactions )
158+ coreTxs := make ([]coretypes.Tx , 0 , numberOfTransactions )
159159 config := encoding .MakeConfig (app .ModuleEncodingRegisters ... )
160160 keyring := testfactory .TestKeyring (config .Codec , accountName )
161161 account := user .NewAccount (accountName , 0 , 0 )
0 commit comments