@@ -161,7 +161,7 @@ func (d *LocalDA) Commit(ctx context.Context, blobs []coreda.Blob, _ []byte) ([]
161161
162162// SubmitWithOptions stores blobs in DA layer (options are ignored).
163163func (d * LocalDA ) SubmitWithOptions (ctx context.Context , blobs []coreda.Blob , gasPrice float64 , _ []byte , _ []byte ) ([]coreda.ID , error ) {
164- d .logger .Info ("SubmitWithOptions called, numBlobs: " , len (blobs ), " gasPrice: " , gasPrice )
164+ d .logger .Info (fmt . Sprintf ( "SubmitWithOptions called, numBlobs: %d, gasPrice: %f " , len (blobs ), gasPrice ) )
165165 d .mu .Lock ()
166166 defer d .mu .Unlock ()
167167 ids := make ([]coreda.ID , len (blobs ))
@@ -172,13 +172,13 @@ func (d *LocalDA) SubmitWithOptions(ctx context.Context, blobs []coreda.Blob, ga
172172
173173 d .data [d .height ] = append (d .data [d .height ], kvp {ids [i ], blob })
174174 }
175- d .logger .Info ("SubmitWithOptions successful, newHeight: " , d . height , " count: " , len (ids ))
175+ d .logger .Info (fmt . Sprintf ( "SubmitWithOptions successful, newHeight: %d, count: %d " , d . height , len (ids ) ))
176176 return ids , nil
177177}
178178
179179// Submit stores blobs in DA layer (options are ignored).
180180func (d * LocalDA ) Submit (ctx context.Context , blobs []coreda.Blob , gasPrice float64 , _ []byte ) ([]coreda.ID , error ) {
181- d .logger .Info ("Submit called, numBlobs: " , len (blobs ), " gasPrice: " , gasPrice )
181+ d .logger .Info (fmt . Sprintf ( "Submit called, numBlobs: %d, gasPrice: %f " , len (blobs ), gasPrice ) )
182182 d .mu .Lock ()
183183 defer d .mu .Unlock ()
184184 ids := make ([]coreda.ID , len (blobs ))
@@ -189,7 +189,7 @@ func (d *LocalDA) Submit(ctx context.Context, blobs []coreda.Blob, gasPrice floa
189189
190190 d .data [d .height ] = append (d .data [d .height ], kvp {ids [i ], blob })
191191 }
192- d .logger .Info ("Submit successful, newHeight: " , d . height , " count: " , len (ids ))
192+ d .logger .Info (fmt . Sprintf ( "Submit successful, newHeight: %d, count: %d " , d . height , len (ids ) ))
193193 return ids , nil
194194}
195195
0 commit comments