Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Feb 5, 2025
1 parent cc78a4c commit 6b5889b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ func createPayloadAndSetHead(
if err != nil {
log.Debug("Failed to check if the block is preconfirmed", "error", err)
} else if header != nil {
// Update the l1Origin and headL1Origin cursor for that preconfirmed block.
meta.L1Origin.L2BlockHash = header.Hash()
if _, err := rpc.L2.UpdateL1Origin(ctx, meta.L1Origin); err != nil {
return nil, fmt.Errorf("failed to update L1 origin: %w", err)
}
Expand Down

0 comments on commit 6b5889b

Please sign in to comment.