Skip to content

Commit b116ab5

Browse files
author
colinlyguo
committed
tweaks
1 parent a213ad0 commit b116ab5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rollup/internal/orm/chunk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (o *Chunk) UpdateStateRootByHash(ctx context.Context, hash string, stateRoo
266266
db = db.Where("hash = ?", hash)
267267

268268
if err := db.Updates(updateFields).Error; err != nil {
269-
return fmt.Errorf("Chunk.UpdateStateRootByHash error: %w, batch hash: %v", err, hash)
269+
return fmt.Errorf("Chunk.UpdateStateRootByHash error: %w, chunk hash: %v", err, hash)
270270
}
271271

272272
return nil

rollup/internal/orm/l2_block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (o *L2Block) UpdateStateRootByHash(ctx context.Context, hash string, stateR
266266
db = db.Where("hash = ?", hash)
267267

268268
if err := db.Updates(updateFields).Error; err != nil {
269-
return fmt.Errorf("L2Block.UpdateStateRootByHash error: %w, batch hash: %v", err, hash)
269+
return fmt.Errorf("L2Block.UpdateStateRootByHash error: %w, block hash: %v", err, hash)
270270
}
271271

272272
return nil

0 commit comments

Comments
 (0)