@@ -260,15 +260,15 @@ func (o *Batch) InsertBatch(ctx context.Context, batch *encoding.Batch, dbTX ...
260260 if err != nil {
261261 log .Error ("failed to create new DA batch" ,
262262 "index" , batch .Index , "total l1 message popped before" , batch .TotalL1MessagePoppedBefore ,
263- "parent hash" , batch .ParentBatchHash , "number of chunks" , numChunks , "err" , err )
263+ "parent hash" , batch .ParentBatchHash . Hex () , "number of chunks" , numChunks , "err" , err )
264264 return nil , err
265265 }
266266
267267 var startChunkIndex uint64
268268 parentBatch , err := o .GetLatestBatch (ctx )
269269 if err != nil {
270270 log .Error ("failed to get latest batch" , "index" , batch .Index , "total l1 message popped before" , batch .TotalL1MessagePoppedBefore ,
271- "parent hash" , batch .ParentBatchHash , "number of chunks" , numChunks , "err" , err )
271+ "parent hash" , batch .ParentBatchHash . Hex () , "number of chunks" , numChunks , "err" , err )
272272 return nil , fmt .Errorf ("Batch.InsertBatch error: %w" , err )
273273 }
274274
@@ -282,14 +282,14 @@ func (o *Batch) InsertBatch(ctx context.Context, batch *encoding.Batch, dbTX ...
282282 startDAChunk , err := codec .NewDAChunk (batch .Chunks [0 ], batch .TotalL1MessagePoppedBefore )
283283 if err != nil {
284284 log .Error ("failed to create start DA chunk" , "index" , batch .Index , "total l1 message popped before" , batch .TotalL1MessagePoppedBefore ,
285- "parent hash" , batch .ParentBatchHash , "number of chunks" , numChunks , "err" , err )
285+ "parent hash" , batch .ParentBatchHash . Hex () , "number of chunks" , numChunks , "err" , err )
286286 return nil , fmt .Errorf ("Batch.InsertBatch error: %w" , err )
287287 }
288288
289289 startDAChunkHash , err := startDAChunk .Hash ()
290290 if err != nil {
291291 log .Error ("failed to get start DA chunk hash" , "index" , batch .Index , "total l1 message popped before" , batch .TotalL1MessagePoppedBefore ,
292- "parent hash" , batch .ParentBatchHash , "number of chunks" , numChunks , "err" , err )
292+ "parent hash" , batch .ParentBatchHash . Hex () , "number of chunks" , numChunks , "err" , err )
293293 return nil , fmt .Errorf ("Batch.InsertBatch error: %w" , err )
294294 }
295295
@@ -300,14 +300,14 @@ func (o *Batch) InsertBatch(ctx context.Context, batch *encoding.Batch, dbTX ...
300300 endDAChunk , err := codec .NewDAChunk (batch .Chunks [numChunks - 1 ], totalL1MessagePoppedBeforeEndDAChunk )
301301 if err != nil {
302302 log .Error ("failed to create end DA chunk" , "index" , batch .Index , "total l1 message popped before" , totalL1MessagePoppedBeforeEndDAChunk ,
303- "parent hash" , batch .ParentBatchHash , "number of chunks" , numChunks , "err" , err )
303+ "parent hash" , batch .ParentBatchHash . Hex () , "number of chunks" , numChunks , "err" , err )
304304 return nil , fmt .Errorf ("Batch.InsertBatch error: %w" , err )
305305 }
306306
307307 endDAChunkHash , err := endDAChunk .Hash ()
308308 if err != nil {
309309 log .Error ("failed to get end DA chunk hash" , "index" , batch .Index , "total l1 message popped before" , totalL1MessagePoppedBeforeEndDAChunk ,
310- "parent hash" , batch .ParentBatchHash , "number of chunks" , numChunks , "err" , err )
310+ "parent hash" , batch .ParentBatchHash . Hex () , "number of chunks" , numChunks , "err" , err )
311311 return nil , fmt .Errorf ("Batch.InsertBatch error: %w" , err )
312312 }
313313
0 commit comments